자료형의 크기 확인

This commit is contained in:
2025-09-25 17:44:04 +09:00
parent 5cdbad6e99
commit 672b363edc

13
Practice_03/p03-5.c Normal file
View 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;
}