Generation of Binary numbers

Generation of Binary Code using C

Submitted by Arup Kr Goswami on
Hello, This is a simple C source code, written in g++ platform (Ubuntu, Linux). This is a process to generate Equivalent Binary numbers of decimal values. Here, you have to Push values in stack at first, (Sequentially in decreasing order, e.g 4, 3, 2, 1), then it will generate a palindrome sequence (Length will be [2^n]-1 for given n numbers). Then you will show Binary numbers of maximum n bit