1.

#include <iostream>using namespace std;class LFC { public:     int i;     void get(); }; void LFC::get() {     std::cout << "Enter the value of i: ";     std::cin >> i; } LFC t;  int main() {     LFC t;      t.get();     std::cout << "value of i in local t: "<<t.i<<'\n';     ::t.get();      std::cout << "value of i in global t: "<<::t.i<<'\n';     return 0; }
16.What will be the output of this program?

A. 10
B. 100
C. Error
D. None of the above
Answer» D. None of the above


Discussion

No Comment Found

Related MCQs