What will be the output of the following code?
#include<stdio.h>
int main()
{
int a[4]={4096,2,3,4};
char *p;
p=a;
printf("\n %d",(int)*(++p));
return 0;
}
sizeof int = sizeof(void*) = 4 bytes
According to me the output should be 16 on a little endian machine and 0 on a big endian machine. Am I right?