C언어 데이터 타입 크기
#include void main() {printf("long : %dByte\n", sizeof(long));printf("double : %dByte\n", sizeof(double));printf("int : %dByte\n", sizeof(int));printf("char : %dByte\n", sizeof(char));} long : 4Bytedouble : 8Byteint : 4Bytechar : 1Byte sizeof(데이터타입) 을 통해 변수의 데이터 크기를 확인할 수 있습니다.
C
2016. 7. 9. 10:57