/****************************************/
/* soubor con_int.c			*/
/* priklady celociselnych konstant	*/
/****************************************/


#include <stdio.h>

int main(void)
{
 const ad = 123, bd = -987, cd = 255, dd = 4567, ed = -4567;

/* originalni vystup (BC31):
123     0173    0x7b
-987    0176045 0xfc25
255     0377    0xff
4567    010727  0x11d7
-4567   0167051 0xee29
*/


 printf("%d\t%#0o\t%#x\n", ad, ad, ad);
 printf("%d\t%#0o\t%#x\n", bd, bd, bd);
 printf("%d\t%#0o\t%#x\n", cd, cd, cd);
 printf("%d\t%#0o\t%#x\n", dd, dd, dd);
 printf("%d\t%#0o\t%#x\n", ed, ed, ed);


 return 0;
}