자료형의 크기 확인
This commit is contained in:
13
Practice_03/p03-5.c
Normal file
13
Practice_03/p03-5.c
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(){
|
||||
int x;
|
||||
|
||||
printf("변수 x의 크기 : %d\n", sizeof(x));
|
||||
printf("char 형의 크기 : %d\n", sizeof(char));
|
||||
printf("int 형의 크기 : %d\n", sizeof(int));
|
||||
printf("float 형의 크기 : %d\n", sizeof(float));
|
||||
printf("double 형의 크기 : %d\n", sizeof(double));
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user