Monday, August 15, 2011

How does this code work? - I'm new at C++?

It's just a recursive function which displays an integer in binary format. You enter a decimal integer value in main and then it calls binary() recursively to print an appropriate string of 1s and 0s.

No comments:

Post a Comment