#include <stdio.h>
// char 문자형 1byte
// int 정수형 4byte
// float 실수형 4byte
// double 실수형(범위가 더 큼) 8byte
// (long)
int main(void)
{
char ch=9;
int inum=1052;
double dnum=3.1415;
printf("변수 ch의 크기:%d \n", sizeof(ch));
printf("변수 inum의 크기:%d \n", sizeof(inum));
printf("변수 dnum의 크기:%d \n", sizeof(dnum));
printf("char의 크기: %d \n", sizeof(char));
printf("int의 크기: %d \n", sizeof(int));
printf("long의 크기: %d \n", sizeof(long));
printf("long long의 크기: %d \n", sizeof(long long));
printf("float의 크기: %d \n", sizeof(float));
printf("double의 크기: %d \n", sizeof(double));
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: