long常量和long long常量
1 #include <stdio.h> 2 int main(void) 3 { 4 printf("%zd\n", sizeof(5L)); //long int型整数 5 printf("%zd\n", sizeof(5LL)); //long long int型整数 6 7 printf("%#o\n", 020L); //八进制的long型整数 8 printf("%#x\n", 0x10L); //十六进制的long型整数 9 10 printf("%d\n", 3LL); //long long int型3 11 printf("%d\n", 5ull); //unsigned long long int型5 12 printf("%d\n", 10llu); //unsigned long long int型10 13 printf("%d\n", 6LLU); //unsigned long long int型6 14 printf("%d\n", 9Ull); //unsigned long long int型9 15 16 return 0; 17 }