I need to understand the compilation error.
int main(int argc, char *argv[])
{
int yocto[] = {100, 200, 300, 400};
int *android = &yocto; // Getting error cannot convert ‘int (*)[4]’ to ‘int*’ in initialization
int *linux = yocto; // Working fine.
// But when I am printing the value of &yocto and yocto giving same address.
cout<<"Value of &yocto : " <<&yocto<<endl; // 0x7ffc5f553e50
cout<<"Value of yocto : "<<yocto<<endl; // 0x7ffc5f553e50
return 0;
}
Please explain me what is compiler internally doing with &yocto
address.