반응형
// 왜 typedef 를 즐겨 사용하게 되는가? - 다른 machine으로 porting 해야 할 경우 대비
// 미래에 바뀌게될 환경에 대비 .
#include <stdio.h>
//type.h 하는 헤더로 묶어두자.
typedef short int16;
typedef int int32;
typedef char int8;
void main()
{
//아래 코드가 가질수 있는 문제점은?
short b = 0;
b = 80000;
printf("%d\n",b);
}
반응형
'프로그래밍' 카테고리의 다른 글
Void Pointer (0) | 2009.07.19 |
---|---|
Valiable Arguments (0) | 2009.07.19 |
Quick Sort (0) | 2009.07.19 |
Function Pointer EX (0) | 2009.07.19 |
함수 및 포인터 (0) | 2009.07.19 |
댓글