Question: (Language: C) Write a function char* print any base(unsigned long num, unsigned int base) given that 2 base 36. The function returns the string representation
(Language: C) Write a function char* 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.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
