Question: The prototype of other functions are here: void printBitArray(unsigned char theBits[SIZE_INT]); void toBits(unsigned short value,unsigned char inBits[SIZE_INT]); unsigned short factorial(unsigned short num); Write a main
![The prototype of other functions are here: void printBitArray(unsigned char theBits[SIZE_INT]);](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f50fca5b181_39366f50fc9d0300.jpg)
The prototype of other functions are here:
void printBitArray(unsigned char theBits[SIZE_INT]);
void toBits(unsigned short value,unsigned char inBits[SIZE_INT]);
unsigned short factorial(unsigned short num);
Write a main function that, inputs an integer number (of size unsigned short), calculates the factorial of that number, uses toBits to place the 16 bits of the result into 16 separate locations of a byte sized integer array, and then uses printBits to output the contents of that array. Finally, the program should give the user the option of re-running with different input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
