최대 1 분 소요

#include
#ifdef _________
자 여기서 태스트 할것은 각 변수의 형태가 잡는 메모리 싸이즈이다.
음. 그리고 각 변수형태의 주소값은 얼마를 잡느냐를 분석했다.
결과는. 출력해 보면 안다.. 하하…
#endif
int main(int argc, char *argv[])
{

short test=0;
int test_int=0;
double test_double=0;
char test_char=0;
unsigned long test_ul=0;

printf(“ size of char %d
“,sizeof(test_char));
printf(“ size of short %d
“,sizeof(test));
printf(“ size of int %d
“,sizeof(test_int));
printf(“ size of double %d
“,sizeof(test_double));
printf(“ size of unsigned long %d
“,sizeof(test_ul));

printf(“ size of &char %d
“,sizeof(&test_char));
printf(“ size of &short %d
“,sizeof(&test));
printf(“ size of ∫ %d
“,sizeof(&test_int));
printf(“ size of &double %d
“,sizeof(&test_double));
return 0;
}\