Question: For the following instructions: unsigned char Var1 = 0xD4; unsigned char Var2 = 0xA3; unsigned char Var3 = 0xC7; (i) Evaluate the contents of variable

For the following instructions: unsigned char Var1 = 0xD4; unsigned char Var2 = 0xA3; unsigned char Var3 = 0xC7; (i) Evaluate the contents of variable Var1 in hexadecimal after executing the following statement: Var1 ^=Var3; [10 marks] (ii) Evaluate the contents of variable (Var3) in hexadecimal after executing the following statement (use the new value of Var1): Var3 = Var1|(-Var2); [10 marks]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
