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

swap 2 numbers without using third variable?

656


What is nested structure with example?

616


By using C language input a date into it and if it is right?

566


Explain how do you determine whether to use a stream function or a low-level function?

618


What does 2n 4c mean?

708






what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555

2528


What are the complete rules for header file searching?

664


What is cohesion and coupling in c?

587


Is c high or low level?

574


Difference between malloc() and calloc() function?

652


explain what are pointers?

615


What are different storage class specifiers in c?

611


What happens if you free a pointer twice?

604


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

1648


Is null valid for pointers to functions?

604