Site icon Exam4Training

What happens if you try to compile and run this program?

What happens if you try to compile and run this program?

#define ALPHA 0

#define BETA ALPHA-1

#define GAMMA 1

#define dELTA ALPHA-BETA-GAMMA

#include <stdio.h>

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

printf ("%d", DELTA);

return 0;

Choose the right answer:
A . The program outputs 2
B . The program outputs -2
C . The program outputs 1
D . Compilation fails
E . The program outputs -1

Answer: D

Explanation:

Let’s analyze the macros and the program:

Latest CLA-11-03 Dumps Valid Version with 40 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version