how to find the binary of a number?

Answer Posted / siddiqui mohd. faisal

It's very simple.
Firstly, the binary no. of 0 is 0000.
After that if you want to know the binary no. of 1 then
jaust add 1 to binary no. of 0 i.e. 0000.So, now the ans
will be 0001.But,remember here 1+1=10.So, now if you want
binary no. of 2 then add 1 to binary no. of 1 i.e. 0001.So,
the binary no. of 2 will be 0010.
I hope you got your question answer.

Is This Answer Correct ?    10 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a variable be both constant and volatile?

563


Why c is known as a mother language?

647


What is extern variable in c with example?

539


How can a program be made to print the line number where an error occurs?

653


How can I implement a delay, or time a users response, with sub-second resolution?

626






What are runtime error?

630


In c programming, explain how do you insert quote characters (? And ?) Into the output screen?

766


Explain the process of converting a Tree into a Binary Tree.

2107


Explain what is the difference between far and near ?

653


How can this be legal c?

655


What is floating point constants?

694


What is the difference between the = symbol and == symbol?

630


Why malloc is faster than calloc?

593


Is sizeof a keyword in c?

585


What is function prototype?

612