Examveda

What will be the output of the following C++ code?
#include <iostream> 
using namespace std; 
class S 
{ 
	int m; 
   public: 
	#define MAC(S::m)
};
 
int main(int argc, char const *argv[])
{
	cout<<"Hello World";
	return 0;
}

A. Hello World

B. Error

C. Segmentation Fault

D. Blank Space

Answer: Option B


Join The Discussion

Related Questions on Classes and Objects in C plus plus