Question: C programI want it to be able to compile with gcc and also hope it's simple. Thank you! CoursHeroTranscribedText: u . _ Write a program
C programI want it to be able to compile with gcc and also hope it's simple. Thank you!

CoursHeroTranscribedText: u . _ Write a program that takes two command line arguments at the time the program is executed. You may assume the user enters only signed decimal numeric characters. The input must be fully qualified, and the user should be notified of any value out of range for a 28-bit unsigned integer. The first argument is to be considered a data field and the second is a mask used to perform bit-wise operations on the data field. The program should display a menu that allows the user to select different bitwise operations to be performed on the data field. The required operations are: Set, Clear and Toggle. Both data and mask should be displayed on screen in binary format. And they must be displayed such that one is above the other so that they may be visually compared bit by bit. If data and mask are both within the range for unsigned 8bit values, then the binary display should only show 8 bits. If both values are within the range for unsigned 16-bit values, then the binary display should only show 16 bits. The menu must also allow the user to re-enter a value for data and re-enter a value for the mask. Use scanfu to read data from the user at runtime and overwrite the original values. All user input must be completely qualified to meet the requirements above (up to 28bit unsigned integer values). Printing binary must be done with shifting and bitwise operations. Do NOT use arrays. No multiplication or division is needed to produce binary output to the screen
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
