Home /
Expert Answers /
Computer Science /
please-help-explain-lines-of-code-c-language-program-the-following-in-one-c-file-a-1-points-w-pa996
(Solved): PLEASE HELP! EXPLAIN LINES OF CODE (C LANGUAGE) Program the following in one C file: a. [1 points] W ...
PLEASE HELP! EXPLAIN LINES OF CODE (C LANGUAGE)
Program the following in one C file: a. [1 points] Write a program whose "main" function calls a function with the following prototype: void countFunction(); This function prints the number of times it is called. This must be done by using a printf statement inside the function (that is, do not print the number of times the function is called from the main function). You must not use any global variables. Test your program by calling it from the "main" function several times. b. [4 points] Write a program that prompts the user to enter an unsigned integer (32-bit). Your program uses the function with the following prototype to print the input number with its bits reversed in both integer and binary representations: unsigned int reverseBinary(unsigned int num); A sample run of part b is shown below: Please enter an unsigned integer: 1111 You entered 1111 with bits: 00000000000000000000010001010111 The reversed-bit number is: 3927965696 with bits: 11101010001000000000000000000000