//#include<stdio.h> //int main() //{ // int x = 100; // printf("dec=%d;octal=%o;hex=%x\n", x, x, x); // printf("dec=%d;octal=%#o;hex=%#x\n", x, x, x); // return 0; //} //#include<stdio.h> //int main() //{ // unsigned int un = 3000000000; // short end = 200; // long big = 65537; // long long verybig = 12345678908642; // printf("un=%u and not %d\n", un, un); // printf("end=%hd and %d\n", end, end); // printf("big=%ld and not %hd\n", big, big); // printf("verybig=%lld and not %ld\n", verybig, verybig); // return 0; //} //#include<stdio.h> //#include<inttypes.h> //int main() //{ // int32_t me32; // me32 = 45933945; // printf("First,assume int32_t isint:"); // printf("me32=%d\n", me32); // printf("Next,let's not make any assumptions.\n"); // printf("Instead,use a \"macro\" from inttypes.h:"); // printf("me32=%" PRId32 "\n", me32); // return 0; //}
自学第七十八天
猜你喜欢
转载自blog.51cto.com/15019599/2627845
今日推荐
周排行