0

Multi-Dimensional Arrays

Multi-Dimensional Arrays You are given a two-dimensional array with 3 rows and 3 columns -- 9 elements. Here is the array: string arr[3][3] = { {"Python", "JS", "C++"}, {"PHP", "SQL", "Java"}, {"C#", "Swift", "Kotlin"}, }; CPP Task Complete the code to output C++ . Hint Don't forget that the index of the first element of the array is 0. In order to call the element with indexes k, j you should write arr[k][j].

16th Nov 2021, 12:23 AM
Joyal Joseph
Joyal Joseph - avatar
1 Réponse
+ 1
cout<<arr[0][2];
16th Nov 2021, 12:25 AM
Ashish Neupane
Ashish Neupane - avatar