the difference between array identifier and address of array identifier

前端 未结 4 1071
自闭症患者
自闭症患者 2021-01-14 07:23

Following program would state my doubt clearly I think,so I posted the program:

 #include 
int main() {

        int a[]={1,2,3,4,5};
                 


        
4条回答
  •  猫巷女王i
    2021-01-14 07:30

    C++ has an implicit conversion between an array reference and a pointer. This has been asked many times before, see for example this SO question.

提交回复
热议问题