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. More... | |
int | main () |
Driver Code. More... | |
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 |
int main | ( | void | ) |
static void test | ( | void | ) |
Test function.
Self-test implementations.