Size of char8 Size of char max 127 Size of char min -128 Size of unsignedchar255 Size of short min -32768 Size of short max 32767 Size of unsignedshort65535 Size of int min -2147483648 Size of int max 2147483647 Size of unsignedint4294967295 Size of long min -9223372036854775808 Size of long max 9223372036854775807 Size of unsignedlong18446744073709551615 Size of longlong min -9223372036854775808 Size of longlong max 9223372036854775807 Size of unsignedlonglong18446744073709551615
算数运算符
1 2 3 4 5
int year = 2020; if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) printf("%d is a leap year\n", year); else printf("%d is not a leap year\n", year);