Algorithms_in_C
1.0.0
Set of algorithms implemented in C.
|
Convert decimal to binary using recursion algorithm. More...
#include <assert.h>
Functions | |
int | decimal_to_binary (unsigned int number) |
Decimal to binary using recursion algorithm. More... | |
void | test () |
Test function. | |
int | main () |
Driver Code. | |
Convert decimal to binary using recursion algorithm.
int decimal_to_binary | ( | unsigned int | number | ) |
Decimal to binary using recursion algorithm.
For example, if number = 5, the function returns the decimal integer 101.
number | positive integer number to convert |