Decimal to binary conversion C++ program { Method 1 }

For the conversion of decimal to binary, what we do. We divide number by 2 until we get 0 and then write the remainders. see the image.
Learn C Programming, Recursion in C, Basic recursion examples, Pointer in C programming, Learn Pointer, string c programming examples, array C++ programming examples