Question: dev C++ Question 5 (20 Marks) a) After executing the following program segment, what is the value of the variables and output of the program?


Question 5 (20 Marks) a) After executing the following program segment, what is the value of the variables and output of the program? Write your answer in Table 5. (5 marks) 1 2. 3 4 struct Play fint score, bonus; l; union value tint P, qit; enum level (easy, medium, hard); 6 8 9 10 Play playeri - (10, 15), player2, player 3; value val; level game medium; *+player1.score; player2 - player1 player2 bonus ** 5; player 3 player2; player 2.score +- 12: player 3. score + (int) game; val.p playerl. score; val.q-playeri. bonus 12 13 2 15 16 17 18 cout #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
