A
Q. What is the output of the following C++ code?
Code:
#include <iostream>
using namespace std;
class A
{
int s;
public:
#define ABC(A::s)
};
int main(int argc, char const *argv[])
{
cout << "Hello world";
return 0;
}
using namespace std;
class A
{
int s;
public:
#define ABC(A::s)
};
int main(int argc, char const *argv[])
{
cout << "Hello world";
return 0;
}
- Correct Answer - Option(B)
- Views: 14
- Filed under category C++
- Hashtags:
Discusssion
Login to discuss.