#include<stdio.h>
struct s1
{
int a;
short b;
short c;
double d;
};
struct s2
{
int a;
short b;
double c;
short d;
};
int main()
{
int a=-100,*p,*r[10];
printf("%d %o %x\n",a,a,a);
printf("%d\n",sizeof(int*));
printf("%d\n",sizeof(long*));
printf("%d\n",sizeof(short));
printf("%d\n",sizeof(double));
printf("%d\n",sizeof(float));
printf("%d\n",sizeof(char));
printf("%d\n",sizeof(r));
printf("%d\n",sizeof(*r));
printf("%d\n",sizeof(struct s1));
printf("%d\n",sizeof(struct s2));
return 0;
}
-100 37777777634 ffffff9c
4
4
2
8
4
1
40
4
16
24
--------------------------------
Process exited with return value 0
Press any key to continue . . .