c_primer_plus/chapter3/bases.c

10 lines
168 B
C
Raw Normal View History

2021-10-06 06:49:11 +00:00
#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;
}