Programmation Avancée en C


format_pri_scn.c

00001 #include <stdio.h>
00002 #include <inttypes.h>
00003 
00004 int main()
00005 {
00006     uint_least64_t i = 0xFF14AAAABBBB0001ULL; // cf. /*@\S\ref{sub:const_int}@*/
00007     printf("i = %25llu\n",i);                    // écriture classique
00008     printf("i = %25" PRIdLEAST64 "\n",i);        // écriture portable
00009     return 0;
00010 }
00011