Convert Octal To Decimal Number C Program

 

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

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

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

   

Output

C Program To Convert Octal To Decimal using For and While Loop

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.

Recommended Programs
C Program To Convert Hexadecimal Value To Binary Number
C Program To Find Value of nCr
C Program To Convert Hexadecimal Value To Decimal Number
C Program To Convert Decimal Value To Octal Number
C Program To Convert Decimal Value To Hexadecimal Number
C Program To Check Strong Numbers
C Program To Convert Decimal Value To Binary Number
C Program To Convert Binary Value To Decimal Number
C Program To Convert Decimal into Octal, Binary and Hexadecimal Values

4 thoughts on “Convert Octal To Decimal Number C Program

  1. Sagar Kadam

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

    Reply
    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.

      Reply
  2. Vir Das

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

    Reply

Let's Discuss