I wanted to deduce the number of bytes reserved by integer datatype.
I got help from this forum before about this perticular problem but still stuck on one part of it.
Its expected to print .Code:#include <stdio.h> #include <conio.h> #include <string.h> #include <math.h> int main(void) { int a[2],r; char t; clrscr(); t= (char*)&a[1] - (char*)&a[0]; r=pow(2,8*t); printf("%d %d",t,r); getch(); return 0; }
But its printingCode:2 65536
please help!Code:2 0