answersLogoWhite

0

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;}

User Avatar

Wiki User

10y ago

Still curious? Ask our experts.

Chat with our AI personalities

BeauBeau
You're doing better than you think!
Chat with Beau
JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan
FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran

Add your answer:

Earn +20 pts
Q: Write a code to show 2D array?
Write your answer...
Submit
Still have questions?
magnify glass
imp