#include<stdio.h>
void main()
{
int x;
printf("size of int is %ld",(char*)(&x+1)-(char*)(&x));
printf("size of int is %ld",sizeof(x));
}
void main()
{
int x;
printf("size of int is %ld",(char*)(&x+1)-(char*)(&x));
printf("size of int is %ld",sizeof(x));
}
No comments:
Post a Comment