스폰서
            
#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)); 

'study > c/c++' 카테고리의 다른 글

힙/스택  (0) 2010.03.02
union  (0) 2010.03.01
printf  (0) 2010.03.01


struct :: 2010. 3. 1. 14:53 study/c/c++
openclose