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 is difference between union and structure in c?
What is a void pointer? When is a void pointer used?
What is clrscr ()?
Why do we use int main?
How can I write a function that takes a format string and a variable number of arguments?
write a proram to reverse the string using switch case?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.
the question is that what you have been doing all these periods (one year gap)
Is exit(status) truly equivalent to returning the same status from main?
What are the various types of control structures in programming?
What is omp_num_threads?
What is the scope of local variable in c?
Differentiate between calloc and malloc.
Explain is it valid to address one element beyond the end of an array?