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
Does sprintf put null character?
What is the process to generate random numbers in c programming language?
what type of questions arrive in interview over c programming?
explain what is fifo?
How can I handle floating-point exceptions gracefully?
What is the difference between text files and binary files?
Explain how do you determine a file’s attributes?
Why is c called c not d or e?
how to create duplicate link list using C???
What is the difference between abs() and fabs() functions?
What is the general form of #line preprocessor?
When should structures be passed by values or by references?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
What is difference between far and near pointers?
Where register variables are stored in c?