Kaustubh G Sharma wrote:ohk but 16 represent which char? and there's no addition sign between them... what is the logic behind it?
How does 23 (in decimal) = 23? Because it is (2 * 10) + 3.
The first digit is 2, which is in the 10s position. So to get the value of the first digit you do (2 * 10). The second digit is in the ones position, and has a value of 3. To get the total value of the number you sum the values of the digits, so 23 == (2 * 10) + 3.
Since you understand Hexadecimal
you should be able to apply the same conversion to 0x7f.