โช Choose the correct option.
Which of the following statement is correct about the program given below?
#include
class LGArray {
int array[3][3];
public:
LGArray(int arr[3][3] = NULL) {
if(arr != NULL) {
for(int i = 0; i < 3; i++) {
for(int j = 0; j < 3; j++) {
array[i][j] = i+j;
}
}
}
}
void Display(void) {
for(int i = 0; i < 3; i++) {
for(int j = 0; j < 3; j++) {
cout<< array[i][j] << " ";
}
}
}
};
int main() {
LGArray objBA;
objBA.Display();
return 0;
}