Page 1 of 1

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
by answerhappygod
Question 2 What Does The Following Code Display Void Foo Int X Int Len Cout X Len 1 Fqo X Len 1
Question 2 What Does The Following Code Display Void Foo Int X Int Len Cout X Len 1 Fqo X Len 1 (65.62 KiB) Viewed 25 times
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.