티스토리 뷰
MingGW 컴파일러 데이터타입 싸이즈
//* typesize.c -- prints out type sizes */
#include <stdio.h>
int main(void)
{
/* c99 provides a %zd specifier for sizes */
printf("Type int has a size of %zd bytes.\n", sizeof(int));
printf("Type char has a size of %zd bytes.\n", sizeof(char));
printf("Type long has a size of %zd bytes.\n", sizeof(long));
printf("Type long long has a size of %zd bytes.\n",
sizeof(long long));
printf("Type double has a size of %zd bytes.\n",
sizeof(double));
printf("Type long double has a size of %zd bytes.\n",
sizeof(long double));
return 0;
}
--------------------------------------------------------------
Type int has a size of 4 bytes.
Type char has a size of 1 bytes.
Type long has a size of 4 bytes.
Type long long has a size of 8 bytes.
Type double has a size of 8 bytes.
Type long double has a size of 12 bytes.
'Test > C' 카테고리의 다른 글
2018_2_pad (0) | 2019.04.27 |
---|---|
isdigit(), sprintf(), atoi() (0) | 2019.04.16 |
파일 입출력 (0) | 2019.01.07 |
구조체와 공용체 (0) | 2019.01.05 |
문자/문자열처리함수, 유틸리티함수 찾아볼것! (0) | 2019.01.05 |
- Total
- Today
- Yesterday
- exadata
- cloud-init
- storage
- 부동없이
- artandculture
- oracle
- 3par
- 차집합
- 중복제거
- sysprep
- 배열
- 정렬
- EXA
- 스토리지
- set()
- fromkeys
- virt-sysprep
- 대소문자
- dp-1
- 읽어오기
- dezoomify
- insert
- vmware
- powercli
- LIST
- vmware.powercli
- dp-2
- powershell
- Join
- 변수화
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |