Question: C language please!!! This assignment will allow you to practice more with the bit wise operators and shifts. Consider the following modification of the main

C language please!!!  C language please!!! This assignment will allow you to practice more
with the bit wise operators and shifts. Consider the following modification of

This assignment will allow you to practice more with the bit wise operators and shifts. Consider the following modification of the main program from HW4: Here I have changed the functions so that they take an array of integers instead of just otie integer. This allows me to imagine that I have a loug array of bits instead of an array of integers. The functions can now set, unset, check and display flags for aay bit in the array of 5 integers that I luve made (and should work for auy size array as long as your bit index is in bounds of your array). I also changed the display behavior. Daily 4 displayed the flags as you would see them in a binary number but since this program is moving away from the idea of a binary number to store bits and moving toward the idea of having an array of bits the display 32 flags.as.array function will display the [0] bit first then [1] and so on up to 31 whereas the display 32 .flags function in daily 4 displays the [31] bit first and down to [0]. Similarly the display flags function now takes an array of integers and displays one integer per line using the display 32 .flags as.array function. You may want to be careful about how you call your check flag function from inside the display 32 .flags.as.array function since that function receives an integer and check flag is expecting an array. How can you overcome this obstacle

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!