Vidyalelo
C++ Programming · Q136

Classes and Objects in C++

Programming · C++ Programming · question 136

Q136

What will be the output of the following C++ code? #include 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
Answer
C.
Segmentation Fault
D.
Blank Space

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board