Question: Question 12 15 pts The following C code checks the contents of an 8-bit register (variable) R to determine whether its Most Significant Bit is

Question 12 15 pts The following C code checks the contents of an 8-bit register (variable) R to determine whether its Most Significant Bit is zero or one. // or Ob10000000 int mask=0x80; int result; result = R & mask; if (result==0x80) printf("MSB=1"); else printf("MSB=0"); Now you write a similar code that checks R to see if it is an even number or an odd number, and prints a proper message, in each case
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
