본문 바로가기
01.Bit 단기/C

26_typedef사용법

by chojju 2018. 4. 28.
반응형

#include <stdio.h>

typedef struct tagb{
 int b;
}b;

typedef struct taga  a;
struct taga
{
 int a;
};

int main()
{
 struct taga  a1;
 a    a2;

 struct tagb  b1;
 b            b2;
 return 0;
}

반응형

'01.Bit 단기 > C' 카테고리의 다른 글

28_파일IO문자전용  (0) 2018.04.28
27_파일IO기본코드  (0) 2018.04.28
25_구조체실습, 비트필드, 공용체  (0) 2018.04.28
24_구조체포인터및인자전달  (0) 2018.04.28
23_구조체배열  (0) 2018.04.28

댓글