Fix the code to initialize the 2×5 array to ones:
![3 using namespace std; 4. 5 void printArrCint arr ][5])- for(int j-0; j < 5; j++) cout << In; 6 int mainO 8 int arr[2][5];](https://media.cheggcdn.com/media%2Fc17%2Fc1768221-0fe4-413f-b630-99ab0948fb29%2FphpRKF3ER.png)
3 using namespace std; 4. 5 void printArrCint arr ][5])- for(int j-0; j < 5; j++) cout << “In”; 6 int mainO 8 int arr[2][5]; 0 //initialization Loop 1, for(int i – 0: i < 5; i++){ for( int j = 0: j 〈 2; j++){ arr[i] [j] = 1; 4 7 printArr(arr); 9 return0 Show transcribed image text
Expert Answer
An
PayPal Gateway not configured
PayPal Gateway not configured