# Convert Hexadecimal To Decimal Number C Program

By | August 27, 2016

## C Program To Convert Hexadecimal To Decimal Number

Let us learn how to convert hexadecimal to decimal number in C programming language. This C code for hexadecimal number to decimal conversion makes use of pow() function, while loop and for loop.

#### Hexadecimal Number

A hexadecimal number has a base 16 and includes the following values: 0 1 2 3 4 5 6 7 8 9 A B C D E F where,

A = 10, B = 11, C = 12, D = 13, E = 14, F = 15.

#### Decimal Number

A decimal number has a base 10 and includes digits the following digits: 0 1 2 3 4 5 6 7 8 9

#### Output

If you have any compilation error or doubts in this C program for hexadecimal value to decimal number conversion, let us know about it in the comment section below.

## 7 thoughts on “Convert Hexadecimal To Decimal Number C Program”

1. Rohan Kulkarni

The pow() is not working. When I compile this program, it gives me an error.

2. Vir Das

This was really amazing. So many implementation methods for converting hexadecimal number to decimal numbers in C. Made my concepts more clear.

3. Md shamsh alam

this cod ewill not work if the input is for eg;- 1A, 12AD etc. Because these are also hexa decimal number .

4. Kironmoy Banerjee

THanks so much. This Hex to Dec number conversion is so much easy.

5. Priyanka Janjanam

hexadecimal means it mainly involves A,B,C,D,E .you didnt show any code to convert that