What happens when you attempt to compile and run the following code?

What happens when you attempt to compile and run the following code?

#include <iostream>

using namespace std;

#define FUN(arg) if(arg) cout<<"Test";

int main()

{

int i=1;

FUN(i<3);

return 0;

}
A . It prints: 0
B.It prints: T
C.It prints: T0
D.It prints: Test

Answer: D

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments