ranges of some data types【3】

2391 단어 c 언어
ranges of some data types
주로 limits를 배웠어요.h 파일
#include 
#include 
int main() {
    printf("size of char is %d
"
, CHAR_BIT); printf("char max is %d
"
, CHAR_MAX); printf("char min is %d
"
, CHAR_MIN); printf("int min is %d
"
, INT_MIN); printf("int max is %d
"
, INT_MAX); printf("long min is %ld
"
, LONG_MIN); printf("long max is %ld
"
, LONG_MAX); printf("short min is %d
"
, SHRT_MIN); printf("short max is %d
"
, SHRT_MAX); printf("unsigned char max is %d
"
, UCHAR_MAX); printf("unsigned long max is %lu
"
, ULONG_MAX); printf("unsigned int max is %u
"
, UINT_MAX); printf("unsigned short max is %d
"
, USHRT_MAX); return 0; }

좋은 웹페이지 즐겨찾기