1 #include <stdio.h>
2 #include <stdlib.h>
3
4 typedef char mytype[100];
5
6 int main()
7 {
8 mytype a;
9 printf("sizeof(a) = %d/n", sizeof(a));
10 printf("sizeof(mytype) = %d/n" ,sizeof(mytype));
11 return 0;
12 }
~/testbench> gcc -o test test.c
~/testbench> ./test
sizeof(a) = 100
sizeof(mytype) = 100
2 #include <stdlib.h>
3
4 typedef char mytype[100];
5
6 int main()
7 {
8 mytype a;
9 printf("sizeof(a) = %d/n", sizeof(a));
10 printf("sizeof(mytype) = %d/n" ,sizeof(mytype));
11 return 0;
12 }
~/testbench> gcc -o test test.c
~/testbench> ./test
sizeof(a) = 100
sizeof(mytype) = 100