# Write a c program to convert decimal to binary number using array

From binary to decimal: This is slightly easier. For example take binary: Hope you understand how binary and decimal conversions work in theory, so all you need to do now is convert the text explanation above into code.

Good luck and have fun. If you get stuck, paste your code using codeblocks and i'll try help point you in the right direction. Nathaniel over 4 years ago. I want to gather a list. Simon Urban over 4 years ago. I'm afraid I don't know how I can help you any more without coding the whole program for you. I have already coded such a program in C. I think once you understand what is required to code, you'll be able to work out what variable, etc. I can't just say: Here's my code from my C program for Decimal to Binary: The Binary to Decimal is a slight cheat because in C , you can convert a string to any given base e.

Decimal number system is a base 10 number system. Decimal number system uses only 10 symbols to represent all number i. Binary number system is a base 2 number system. Binary number system uses only 2 symbols to represent all numbers i. The above program converts the decimal to binary number only up to 18 binary bits.

Use the below program to convert from decimal to binary number for a higher range. Learn more - Program to convert decimal to binary using bitwise operator. Example Input Input decimal number: Algorithm Decimal to Binary conversion begin: Enter any decimal value: Recommended posts Loop programming exercises and solutions in C.