Question 2 What does the following code display? void foo (int x[], int len) ( cout << x [len - 1] << " "; fqo (x, len -
Posted: Sun Jul 03, 2022 12:00 pm
Question 2 What does the following code display? void foo (int x[], int len) ( cout << x [len - 1] << " "; fqo (x, len - 1); int main() { } int x[] = {1, 2, 3, 4); foo (x, 4); O The program displays 1 2 3 4. O The program displays 4 3 2 1 and then the index will be out of bounds. O The program displays 4 3 2 1. O The program displays 1 2 3 4 and then the index will be out of bounds. O The program displays 4.