Q203
What will be the output of the following C++ code? #include using namespace std; class CDummy public: int isitme (CDummy& param); ; int CDummy::isitme (CDummy& param) if (¶m == this) return true; else return false; int main () CDummy a; CDummy *b = &a; if (b->isitme(a)) cout << "execute"; else cout<<"not execute"; return 0;
A.
execute
AnswerB.
not execute
C.
error
D.
both execute & not execute
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board