# Convert Octal To Decimal Number C Program

By | August 27, 2016

## C Program To Convert Octal To Decimal Number

Learn How To Convert Octal To Decimal Number in C Programming Language. This C code for Octal Number to Decimal Conversion makes use of pow() function, While loop and For loop.

#### Octal Number

An Octal Number has a base 8 and includes the following digits: 0 1 2 3 4 5 6 7

#### 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

#### Method 1: C Program To Convert Octal To Decimal Value using While Loop

[crayon-5c11754bb2c61948498536/]

#### Method 2: C Program For Octal Number To Decimal Conversion using For Loop

[crayon-5c11754bb2c6c209663572/]

#### Method 3: C Program For Octal To Decimal Conversion using Functions

[crayon-5c11754bb2c70387392201/]

#### Output

If you have any compilation error or doubts in this C Program For Octal Value to Decimal Number Conversion, let us know about it in the Comment Section below.

## 4 thoughts on “Convert Octal To Decimal Number C Program”

What is the need of the Modulus Operator here? Can you please explain its working?

1. Tushar Soni Post author

The Mod Operator is used to extract the last digit of the number of the given number. This statement does it: rem = number%10, which you can manipulate later as done in the above code.

2. Rohan Kulkarni

These codes are just so easy to understand. Thanks a lot.

3. Vir Das

Finally I understood how to convert octal numbers into decimal number in c programming. Thanks.