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 DEF_A 0

int main(int argc, char *argv[]) {

cout << DEF_A;

return 0;

}
A . It prints: 1
B . It prints: 0
C . It prints: ?1
D . Compilation error

Answer: B

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments