c_primer_plus/chapter3/bases.c
2021-10-06 14:49:11 +08:00

10 lines
168 B
C

#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;
}