standard conversions: Array-to-pointer conversion

后端 未结 4 1408
予麋鹿
予麋鹿 2020-11-29 10:33

This is the point from ISO :Standard Conversions:Array-to-pointer conversion: $4.2.1

An lvalue or rvalue of type “array of N T” or “array o

4条回答
  •  鱼传尺愫
    2020-11-29 11:15

    int a[6];
    int *b = a;
    

    Pointer b points to the a[0], i.e. contains the address of the element a[0].

提交回复
热议问题