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(float ff) { cout<< "Float" << 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 Float .
D. The program will print the output Final .
Answer» C. The program will print the output Float .


Discussion

No Comment Found

Related MCQs