Advertisement
dooly386

c++ variable type range

Apr 27th, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.06 KB | None | 0 0
  1. Visual C++ 32비트 및 64비트 컴파일러는 이 문서의 뒷부분의 표에 나온 형식을 인식합니다.
  2. int (unsigned int)
  3. __int8 (unsigned __int8)
  4. __int16 (unsigned __int16)
  5. __int32 (unsigned __int32)
  6. __int64 (unsigned __int64)
  7. short (unsigned short)
  8. long (unsigned long)
  9. long long (unsigned long long)
  10. 이름이 두 개의 밑줄(__)로 시작하는 경우 데이터 형식은 비표준입니다.
  11. 다음 표에 지정된 범위는 포함-포함입니다.
  12. 형식 이름   바이트   기타 이름   값의 범위
  13. int 4   signed  –2,147,483,648 ~ 2,147,483,647
  14. unsigned int    4   unsigned    0 ~ 4,294,967,295
  15. __int8  1   char    -128 ~ 127
  16. 부호 없는 __int8    1   unsigned char   0 ~ 255
  17. __int16 2   짧은하십시오 short int, short int 서명  –32,768 ~ 32,767
  18. 부호 없는 __int16   2   unsigned short, 부호 없는 short int 0 ~ 65,535
  19. __int32 4   서명하십시오 int 서명, int  –2,147,483,648 ~ 2,147,483,647
  20. 부호 없는 __int32   4   부호 없는, 부호 없는 int    0 ~ 4,294,967,295
  21. __int64 8   long long, 기호가 있는 long long   –9,223,372,036,854,775,808 ~ 9,223,372,036,854,775,807
  22. unsigned __int64    8   부호 없는 long long 0 ~ 18,446,744,073,709,551,615
  23. bool    1   없음  false 또는 true
  24. char    1   없음  -기본적으로 128 ~ 127
  25.  
  26. /J를 사용하여 컴파일된 경우 0~255
  27. 서명 된 char 1   없음  -128 ~ 127
  28. unsigned char   1   없음  0 ~ 255
  29. short   2   short int, short int 서명 –32,768 ~ 32,767
  30. unsigned short  2   unsigned short int  0 ~ 65,535
  31. long    4   long int, long int 서명   –2,147,483,648 ~ 2,147,483,647
  32. unsigned long   4   unsigned long int   0 ~ 4,294,967,295
  33. long long   8   없음 (하지만 같음 __int64)   –9,223,372,036,854,775,808 ~ 9,223,372,036,854,775,807
  34. 부호 없는 long long 8   없음 (하지만 같음 unsigned __int64)  0 ~ 18,446,744,073,709,551,615
  35. enum    varies  없음 
  36. float   4   없음  3.4E+/-38(7개의 자릿수)
  37. double  8   없음  1.7E+/-308(15개의 자릿수)
  38. long double 동일 double   없음  동일 double
  39. wchar_t 2   __wchar_t   0 ~ 65,535
  40. 사용 방법에 따라, 변수의 __wchar_t 와이드 문자 형식 또는 멀티 바이트 문자 형식
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement