Please look at following 'C' code :
main()
{
char c1;
int i1;
char c2;
printf("%u %u %u", &c1, &i1, &c2);
}
I got output of the above mentioned code is :
65497 65498 65501
Here the difference between first two numbers is 1 and it is ok as the size of char type is 1. But I want to know why the difference between 2nd and 3rd number is 3, while the size of int data type is only 2. So acording to me the output shoud be as follows:
65497 65498 65500
Can anybody please tell me why this happens ?
Thanking You,