#include int main(void){ char array[20]; printf( \"\\nSize of array is %d\\n\", sizeof(array) ); //outputs 20 printf(\"\\nSize of &
sizeof(array) is giving you size of total array and sizeof(&array[0]) is giving you sizeof(char *)
sizeof(array)
sizeof(&array[0])
sizeof(char *)
Your question is perfect example of Array and pointer are not same. Array may act as pointer.Have a look here.
Array and pointer are not same