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
What are the uses of null pointers?
Explain what is the benefit of using enum to declare a constant?
Explain the use of fflush() function?
What is a global variable in c?
What is the purpose of macro in C language?
Explain the bubble sort algorithm.
What are global variables and how do you declare them?
What is a string?
What is the difference between arrays and pointers?
What is calloc()?
Why do we use c for the speed of light?
What is spark map function?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
List some applications of c programming language?
What is string concatenation in c?