Which of the following statement is correct about the program given below? #include<iostream.h>
class CuriousTabArray
{
int Matrix[3][3];
public:
CuriousTabArray()
{
for(int i = 0; i<3; i++)
for(int j = 0; j < 3; j++)
Matrix[j][i] = i + j;
}
void Display(void)
{
for(int i = 0; i < 3; i++)
for(int j = 0; j < 3; j++)
cout<< Matrix[j][i] << " ";
}
};
int main()
{
CuriousTabArray objCuriousTab;
objCuriousTab.Display();
return 0;
}
Correct Answer: The program will display the output 0 1 2 1 2 3 2 3 4.