Question: a) What would be printed by the following program? 1 #include int main (void) El int list [10] = {1, 2, 1, 2, 3, 1,
a) What would be printed by the following program? 1 #include int main (void) El int list [10] = {1, 2, 1, 2, 3, 1, 3, 1, 2, 2}; 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 printf("%d ", list [2]); printf("%d ", list (list [2]]); printf("%d ", list [list [2] + list [3]]); printf("%d ", list [list [list [2]]]); printf("%d ", list [list [2] + list [4]]); printf("%d ", list [list [2] + list (list[2] + list [3]]]); printf("%d ", list [list [2] list [3]]); printf("%d ", list (list [2] / list [8]]); printf("%d ", list [list [6] - list [list [9] * list [0]]]); printf("%d ", list [list [9] - list [list[6] + list [8]]]); return 0; (15 Marks) b) What would be printed by the following program? 1 #include 2 int main (void) 3 4 int list [10] = {1, 2, 1, 4, 1, 2, 0, 1, 2, 2}; 5 int line [10]; 6 7 for (int i = 0; i