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 types of data types and explain?
What is pointer & why it is used?
What is the difference between arrays and pointers?
What is echo in c programming?
Do you know the difference between malloc() and calloc() function?
can any one tel me wt is the question pattern for NIC exam
What does sizeof function do?
How can you call a function, given its name as a string?
What is the difference between procedural and functional programming?
What is an auto variable in c?
What is the difference between call by value and call by reference in c?
Why clrscr is used in c?
How can I discover how many arguments a function was actually called with?
What is the difference between text and binary i/o?
Explain what is page thrashing?