MCQOPTIONS
Saved Bookmarks
| 1. |
Which of the following statement is correct about the program given below? #include<iostream.h> class IndiaBix { int *p; public: IndiaBix(int xx, char ch) { p = new int(); *p = xx + int(ch); cout<< *p; } ~IndiaBix() { delete p; } }; int main() { IndiaBix objBix(10, 'B'); return 0; } |
| A. | The program will print the output 76. |
| B. | The program will print the output 108. |
| C. | The program will print the output garbage value. |
| D. | The program will report compile time error. |
| Answer» B. The program will print the output 108. | |