The decimal (base ten) numeral system has ten possible values (0,1,2,3,4,5,6,7,8, or 9) for each place-value. In contrast, the binary (base two) numeral system has two possible values, often represented as 0 or 1, for each place-value
the base of each individual number may be specified by writing it as a subscript of the number. For example, the decimal number 156 may be written as 15610 and read as “one hundred fifty-six, base ten”. The binary conversion of 156 is 10011100 may be specified as “base two” by writing it as 100111002.
Code:
}
Also Read:
C Program for Base Conversion from Binary to Decimal
Hope you liked my posts, give comments if you have any doubts… 🙂
——————————————————————————————————————————————————————————–
Tags: Conversion
Leave a comment