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]);

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!