'타입구별'에 해당되는 글 1건

  1. 2010.08.11 C - 지시연산자, 타입 구별 법
posted by Full-stack Developer 2010. 8. 11. 14:17


 경우 타입
 명칭() 함수 
 명칭[] 배열 
 *명() 함수 
 (*명칭)(),*명칭 포인터



int* a[10];
배열명: a 원소개수: 10 원소타입: int*
int (*b)[10];
포인터명: b 원소타입 : int[10]
int c[10][5];
배열명: c 원소개수: 10 원소타입:int[5]
int (*g)(int);
포인터명: g 원소타입: int(int)  - 함수포인터
int (*e[10])(int);
배열명: e 원소개수:10 원소타입: int(*)(int) - 함수포인터
void (*yoon(int,void(*yoon_header)(int)))(int);
함수명: yoon
매개변수: 2개 
              1th: int
              2th: void(*yoon_header)(int)
리턴타입: void(*)(void)
typedef int (*f)(int);
타입명: f 타입: int(*)(int)

'Programming > C' 카테고리의 다른 글

C - 기초 문법, 구성요소  (0) 2010.08.11
C - 루프  (0) 2010.04.20
C - 연산자  (0) 2010.03.24
C - 변수와 상수  (0) 2010.03.24
C - 주석  (0) 2010.03.22