C Program To Convert Decimal To Binary Number using Recursion

Published: 13 May 2020
on channel: Technotip
16,979
283

https://technotip.com/8150/c-program-...

A positive integer is entered through the keyboard, write a function to find the Binary equivalent of this number:

(1) Without using recursion.
(2) Using recursion.

Analyze The Problem Statement
We need to convert the user input Decimal number to its equivalent Binary number using iterative logic as well as recursive logic.

In this video tutorial, we'll write 2 functions. One for iterative logic and another for recursive logic.

Expected Input/Output
Enter a Decimal number
14

Iterative Logic
Binary Equivalent of 14 is 1110

Recursive Logic
Binary Equivalent of 14 is 11110

Note: Binary number system can be derived by base 2 to the power of whole numbers.

C Programming Interview / Viva Q&A List
https://technotip.com/6378/c-programm...

C Programming: Beginner To Advance To Expert
https://technotip.com/6086/c-programm...


On this page of the site you can watch the video online C Program To Convert Decimal To Binary Number using Recursion with a duration of hours minute second in good quality, which was uploaded by the user Technotip 13 May 2020, share the link with friends and acquaintances, this video has already been watched 16,979 times on youtube and it was liked by 283 viewers. Enjoy your viewing!