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

Tushar Soni

I am Tushar Soni, Co - Founder of CodingAlpha. I am a computer science student from India and passionate about Web Development and Programming. Connect with me on Facebook | LinkedIn | Google Plus

4 thoughts on “Convert Octal To Decimal Number C Program

  • August 28, 2016 at 5:30 pm
    Permalink

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

    Reply
    • September 5, 2016 at 11:52 am
      Permalink

      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
  • August 28, 2016 at 5:31 pm
    Permalink

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

    Reply
  • September 13, 2016 at 11:06 am
    Permalink

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

    Reply

Join The Discussion