Recursive C++ Program to Convert a Decimal Integer into Binary Number

Here is a very simple and recursively written C++ program to convert a decimal integer number into its binary equivalent. However it returns the binary equivalent in the form of a string of characters but you can very easily write an other function to convert this string into an actual binary number as well.

If you want me to explain any part of this program or have suggestions to improve it then please tell me via comments. I will try my best to respond promptly.

Leave a Reply