#include <stdio.h>
#include <stdlib.h> struct _AAA { int age; }; typedef struct BBB { int age; }; typedef struct { int age; } CCC; int main() { _AAA humanA; humanA.age = 10; BBB humanB; humanB.age = 10; CCC humanC; humanC.age = 10; return 0; } typedef struct{ int a; char b; short d; int c; }structTest; printf("Struct Size : %d\n",sizeof(sTemp)); typedef struct{ int a; char b; int c; short d; }structTest; printf("Struct Size : %d\n",sizeof(sTemp)); |
|