Assuming that the array Num [] is initially as shown below. Num[1 [2] [0] [1] [3] [4) 26 41 38 101 88 Show the contents
Posted: Sat Feb 19, 2022 3:20 pm
Assuming that the array Num [] is initially as shown below. Num[1 [2] [0] [1] [3] [4) 26 41 38 101 88 Show the contents of the array elements after each of the following program segments is executed. Assume (a) and (b) is executed independently. temp - Num(1): Num(1) - Num[3]; Num (3) - tempi Num] [0] [1] [2] [3] [4] b. temp - Num[0]; for (int i -1; i < 3; i++) Num(1) - Num(i+1]; Num[4) - tempi Num[] 10] [1] [2] [3] (4)