Array and Rvalue

后端 未结 3 1454
傲寒
傲寒 2020-12-11 16:24

$4.2/1 - \"An lvalue or rvalue of type “array ofN T” or “array of unknown bound of T” can be converted to an rvalue of type “pointer to T.” The result

3条回答
  •  感动是毒
    2020-12-11 16:43

    Would this stand a chance to demonstrate Array Rvalue?

    int main(){
     int buf[10][10];
    
     int (*p)[10] = buf;
    
     int (*p2)[10] = p;      // LValue to Rvalue conversion of Array type 'p'
    }
    

提交回复
热议问题