Question #201975

suppose list is an array of five components of type int. what is stored in list after the following c++ code executes? for (int i = 0; i < 5; i++) { list[i] = 2 * i + 5; if (i % 2 == 0) list[i] = list[i] "-3;" }


Expert's answer

The list will contain the following data:

2

7

6

11

10


LATEST TUTORIALS
APPROVED BY CLIENTS