1.

Predict the output of following C++ program#include <iostream>using namespace std;int i;class A{public:~A(){i=10;}};int foo(){i=3;A ob;return i;}int main(){cout << foo() << endl;return 0;}(A) 0(B) 3(C) 10(D) None of the above

Answer»


Discussion

No Comment Found