1.

What is the output of this program?
#include <iostream>
using namespace std;
class Abhay
{
public:
int age;
};
int main()
{
Abhay obj;
obj.age = 24;

cout << "Abhay is " ;
cout << obj.age << " years old.";
}

A. years old.
B. 24
C. Abhay is
D. Abhay is 24 years old.
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs