Question: Question 2 (10 pts): Code evaluation, 2 pts each. For each C code fragment, give the final value of the indicated variable afterthe code fragment


Question 2 (10 pts): Code evaluation, 2 pts each. For each C code fragment, give the final value of the indicated variable afterthe code fragment is run. If the final value cannot be determined, then write NLA. a. Fina value of ch is (in hex) ch ch 0x76 ar ch (ch 4) I h 3) b. Fina value of ptr chart is (in hex) unsigned char my char 0x8F Assume my char is located at 0xFFFF FD0C char ptr char my char my char 8; ptr char &my char my char c. Fina value of chi tris ar (in hex) unsigned char al xFF Assume v is located a 0xFFFF FFFE al Assume val is located at 0xFFFF FFF0 unsigned char val2 1; char char ptr; if unsigned cha al val ar 2) char ptr &val else char tr kva 12; Question 2 (10 pts): Code evaluation, 2 pts each. For each C code fragment, give the final value of the indicated variable afterthe code fragment is run. If the final value cannot be determined, then write NLA. a. Fina value of ch is (in hex) ch ch 0x76 ar ch (ch 4) I h 3) b. Fina value of ptr chart is (in hex) unsigned char my char 0x8F Assume my char is located at 0xFFFF FD0C char ptr char my char my char 8; ptr char &my char my char c. Fina value of chi tris ar (in hex) unsigned char al xFF Assume v is located a 0xFFFF FFFE al Assume val is located at 0xFFFF FFF0 unsigned char val2 1; char char ptr; if unsigned cha al val ar 2) char ptr &val else char tr kva 12
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
