29 double des_cislo = 3.45;
31 double male_cislo = 1.2e-10;
34 unsigned char uch =
'\xa1';
36 unsigned short us = 65535;
38 unsigned int ui = 0xB1aaB1ee;
40 unsigned long ul = 65535;
45 long double ldabl = 22.0/7;
53 printf(
"Hodnota promenne cislo je: %i\n", i);
54 printf(
"Hodnota promenne des_cislo je: %3.2f\n", des_cislo);
55 printf(
"Hodnota promenne muj_znak je: %c\n", muj_znak);
56 printf(
"Hodnota promenne male_cislo je: %g\n", male_cislo);
63 printf(
" ch: '%c' \\x%x\n", ch, ch);
64 printf(
"uch: '%c' \\x%x\n", uch,uch);
66 printf(
" i %%i: %i\n", i);
67 printf(
"ui %%i: %i\n",ui);
68 printf(
"ui %%u: %u\n",ui);
69 printf(
"LONG_MAX=%li\n", LONG_MAX);
70 printf(
" INT_MAX=%i\n", INT_MAX);
72 printf(
"flout %%g: %g, %%e: %e, %%f: %f, %%60.58f: %60.58f\n", flout, flout, flout, flout);
73 printf(
" dabl %%g: %g, %%e: %e, %%f: %f, %%60.58f: %60.58f\n", dabl, dabl, dabl, dabl);
75 printf(
"ldabl %%Lg: %Lg, %%Le: %Le, %%Lf: %Lf, %%60.58Lf: %60.58Lf\n", ldabl, ldabl, ldabl, ldabl);
78 #define SIZEOF(type) printf("sizeof(" #type ")==%zu\n",sizeof(type))