添加bases.c
This commit is contained in:
parent
a25f190df3
commit
4f6d9843b0
9
chapter3/bases.c
Normal file
9
chapter3/bases.c
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user