MCQOPTIONS
Saved Bookmarks
| 1. |
#include <iostream>using namespace std;class LFC{ int x; public: LFC(short ss) { cout<< "Short" << endl; } LFC(int xx) { cout<< "Int" << endl; } LFC(float ff) { cout<< "Float" << endl; } ~LFC() { cout<< "Final"; }};int main(){ LFC *ptr = new LFC('F'); return 0; }16.What will be the output of this program? |
| A. | Compile Time Error |
| B. | Run Time Error |
| C. | No Error |
| D. | Warning |
| Answer» B. Run Time Error | |