Read in 10 integers from the command line and store them in int arrayl. This part is
complete in the given starter program.
b. Reverse the order of array elements in int array_1 using swap _ints function. i.e. swap
I’ and 10′
element then 2nd and 9th and so on. (You can call swap_ints function within
a loop)
C.
Get an integer user input and add that number to all elements of the int array1 using
bitwise add function. (You can call bitwise add in a loop).
d.
Get the absolute values of numbers in int array_1 and save them back in the
uint array_1 array using bitwise abs function. Print all numbers within the
uint array_1 in a single line using display_array function.
e.
Get mod 32 of these unsigned integers using bitwise mod 32 function. (Hint: This can
be achieved bitwise by masking the 5 least significant bits in the integer number) and
save them into uint _array2. Print all numbers within the uint array2 in a single line
using display array function.
f.
Get an integer user input in the range of O to 31 and shift left each element of the
uint array2 with that number using bitwise_shift left function. Then print all elements”
of uint array2 using display_array function.
g. For each unsigned integer in uint _array2, in a separate line: print the number, number
of 1′ bits in the resulting binary representation by calling the function count_set_ bits
and print whether the number is even or odd using odd or even function.