C program to convert number from Hexadecimal to Decimal
In this program, we will read Hexadecimal Value and converts it into Hexadecimal Number System. This program is for Hexadecimal to Decimal Conversion in C.
The logic behind to implement this program - Access each digit (Use 10, 11, 12, 13, 14, 15 instead of A, B, C, D, E, F) from the Number multiply the digit by the power of 16 (for first digits from right side multiply digit with 16^0, second digits 16^1 and so on), add the result and finally you will get Decimal value of given Hexadecimal Number. Here we will multiply with the power of base and base of Hexadecimal Number is 16.