![]() |
VOOZH | about |
Here we will build a C program for hexadecimal to decimal conversion using 5 different approaches i.e.
We will keep the same input in all the mentioned approaches and get an output accordingly.
Input:
hexanumber = "2D"
Output:
decimalnumber = 45
The format specifier %x represents the Hexadecimal number
Output
Decimal value is: 45
Decimal Number : 45
Hexadecimal number = 2D Decimal number = 45
Hexadecimal number = 2D Decimal number = 45