(Language: C) Write a function char* print any base(unsigned long num, unsigned int base) given that 2...
Fantastic news! We've Found the answer you've been seeking!
Question:
(Language: C) Write a functionchar* print any base(unsigned long num, unsigned int base)given that 2 base 36. The function returns the string representation of a base 10 number converted to the given base where the symbols of the base are 0 through 9 followed by A through Z. That is, a base 36 number has 36 symbols 0-9, A-Z. The function must allocate a character array using malloc and store the string representation into the character array. The string must be terminated by \\0.
Posted Date: