How to calculate the octal, decimal and hexadecimal integer constants in C language, please help explain.
Converting octal 0 1 10 into hexadecimal 10 equals 0 * 80+1+1* 82+0 * 83 = 8+64 = 72.
Hexadecimal 0xa2 converted into 10 equals to 2 *160+a *1= 2+10 *16 =162.