Using 4 binary bits you can represent 16 numbers, from 0000 to 1111. How can you print all these 16 numbers in binary format, i.e. "0000", "0001", "0010".... You can choose whatever order to print. Now give you n bits, how can you print out all the n bit numbers in binary format? Can you write a recursive function for that? void PrintAllBinaryNumbers(int nBits)
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/algogeeks -~----------~----~----~----~------~----~------~--~---