1.

#include <iostream>using namespace std;class LFC{      int x;     public:      LFC();      ~LFC();      void Show() const;};LFC::LFC(){    x = 50;}void LFC::Show() const{    cout<< x;}int main(){    LFC obj;    obj.Show();    return 0; }
14.Which of the following statement is correct about the program given below?

A. The program will print the output 80.
B. The program will print the output 112.
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 112.


Discussion

No Comment Found

Related MCQs