Question: Write the code to STEP 0 : Change the values in the letters array to letters. Instead of 1 , 2 , 3 , 4

Write the code to
STEP 0:
Change the values in the letters array to letters. Instead of 1,2,3,4 use letters, any 4 different letters.
STEP 1:
Move the first element of the array to bits 24-31,2nd element to bits 16-23, the 3rd element to bits 8 to 15 and the fourth element to bits 0 to 7. You must use a for loop. Then print the value of the integer in hexadecimal.
STEP 2:
Using a for loop and your integer variable in step 1, copy the bits to a new array (char revert[4];) putting bits

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 Programming Questions!