Podcast
Questions and Answers
What is the correct way to initialize a 2D array in C++ to store roll number and marks obtained by 4 students side by side?
What is the correct way to initialize a 2D array in C++ to store roll number and marks obtained by 4 students side by side?
In a 2D array, what does 'r' represent?
In a 2D array, what does 'r' represent?
What does the following C++ code initialize?
int arr = { { 1234, 56 }, { 1256, 43 }, { 1434, 32 }, { 1312, 96 } };
What does the following C++ code initialize? int arr = { { 1234, 56 }, { 1256, 43 }, { 1434, 32 }, { 1312, 96 } };
What is the correct syntax to access an element at the third row and second column in a C++ 2D array 'arr'?
What is the correct syntax to access an element at the third row and second column in a C++ 2D array 'arr'?
Signup and view all the answers
What does 'c' represent in the declaration 'datatype array_name[r][c];' for a 2D array?
What does 'c' represent in the declaration 'datatype array_name[r][c];' for a 2D array?
Signup and view all the answers
What is the correct way to initialize a 2D array in C++ to store roll number and marks obtained by 4 students side by side?
What is the correct way to initialize a 2D array in C++ to store roll number and marks obtained by 4 students side by side?
Signup and view all the answers
In a C++ 2D array declaration 'datatype array_name[r][c];', what does 'r' represent?
In a C++ 2D array declaration 'datatype array_name[r][c];', what does 'r' represent?
Signup and view all the answers
What does the following C++ code initialize?
What does the following C++ code initialize?
Signup and view all the answers
In C++, what is the correct syntax to access an element at the third row and second column in a 2D array 'arr'?
In C++, what is the correct syntax to access an element at the third row and second column in a 2D array 'arr'?
Signup and view all the answers
What does 'c' represent in the declaration 'datatype array_name[r][c];' for a C++ 2D array?
What does 'c' represent in the declaration 'datatype array_name[r][c];' for a C++ 2D array?
Signup and view all the answers