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.

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;
}
Its expected to print .

Code:
2 65536
But its printing

Code:
2 0
please help!