// # 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; // kurzes Ende = 200; // long big = 65537; // long long verybig = 12345678908642; // printf ("un =% u und nicht% d \ n", un, un); // printf ("end =% hd und% d \ n", end, end); // printf ("big =% ld und nicht% hd \ n", big, big); // printf ("verybig =% lld und nicht% ld \ n", verybig, verybig); // return 0; //} // # include <stdio.h> // # include <inttypes.h> // int main () // { // int32_t me32; // me32 = 45933945; // printf ("Nehmen wir zunächst an, int32_t isint:"); // printf ("me32 =% d \ n", me32); // printf ("Als nächstes machen wir keine Annahmen. \ n"); // printf ("Verwenden Sie stattdessen ein" Makro "aus inttypes.h:"); // printf ("me32 =%" PRId32 "\ n", me32); // return 0; //}
Achtundsiebzigster Tag des Selbststudiums
Ich denke du magst
Origin blog.51cto.com/15019599/2627845
Empfohlen
Rangfolge