C programmers must remember

Decimal----->Binary
0---------->0000 0000
1---------->0000 0001
2---------->0000 0010
4---------->0000 0100
8---------->0000 1000
16-------- >0001 0000

2 to the n power of
2 to the 10 power: 1024
9----->514
8----->256
6----->64
4----->16

Guess you like

Origin blog.csdn.net/happy_teemo/article/details/113481128