The following code displays a 2D array with 4 rows and 3 columns. #include using namespace std; void print(int A[][3],int N, int M){ for (R = 0; R < N; R++) for (C = 0; C < M; C++) cout << A[R][C];}int main (){ int arr[4][3] ={{12, 29, 11}, {25, 25, 13}, {24, 64, 67}, {11, 18, 14}}; print(arr,4,3); return 0;}
Chat with our AI personalities