Tuesday , December 6 2016
Home / C / C program for binary to decimal conversion

C program for binary to decimal conversion

Here is given c program for binary to decimal conversion. But before let us see what is a Binary number is? A binary number is a number formed using only two digits i.e 1 or 0. A Decimal number is a number with base 10 which is in used very efficiently for manually calculations.Let us understand the conversion process through example.Suppose we have a binary number 1101 which is needed to be converted to decimal than its equivalent decimal number can be calculated as:

Multiplying 2 with last digit of binary number + Multiplying 21 with second last digit of binary number
and so on upto the number is…i.e
1101 is equivalent to = 2 * 1 + 21 * 0 + 22 * 1 + 23 * 1 = 13.
Hence 13 is decimal equivalent of binary number 1101.

ALSO CHECK: java program for binary to decimal conversion.

Program for binary to decimal conversion in c

OUTPUT:

binary to decimal conversion
C program for binary to decimal conversion

Incoming terms: C program to convert binary number to decimal number.

Also See:   C program to add two numbers using for loop

Check Also

Hide Mouse Pointer C Program

How to Hide a Mouse Pointer Program in C : This program will show and hide ...

Leave a Reply

Your email address will not be published. Required fields are marked *

Preventing spam * Time limit is exhausted. Please reload the CAPTCHA.