1.

Which of the following statement is correct about the program given below? #include class IndiaBix { int x; public: IndiaBix(short ss) { cout<< "Short" << endl; } IndiaBix(int xx) { cout<< "Int" << endl; } IndiaBix(char ch) { cout<< "Char" << endl; } ~IndiaBix() { cout<< "Final"; } }; int main() { IndiaBix *ptr = new IndiaBix('B'); return 0; }

A. The program will print the output Short .
B. The program will print the output Int .
C. The program will print the output Char .
D. The program will print the output Final .
Answer» D. The program will print the output Final .


Discussion

No Comment Found

Related MCQs