how to find the binary of a number?

Answer Posted / ashu

divide the given no by two n store the remainder in stack
and divide again by 2 to quotent the process gong on....
n store all the remainder in the same stack....
n in last pop all the element from stack n print it.

Is This Answer Correct ?    11 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is bin sh c?

576


What is break statement?

626


Why do we use main function?

630


What is %g in c?

611


How can I get back to the interactive keyboard if stdin is redirected?

663






can we implement multi-threads in c.

657


How can you determine the maximum value that a numeric variable can hold?

633


What language is c written?

572


Explain what are binary trees?

604


What does int main () mean?

541


Whats s or c mean?

591


Explain what is the heap?

618


Explain the priority queues?

617


What is use of integral promotions in c?

661


Why is structure padding done in c?

638