Comment on the output of the following C code.
#include <stdio.h>
#define var 20);
int main()
{
printf("%d\n", var
}
#include <stdio.h>
#define var 20);
int main()
{
printf("%d\n", var
}
A. No errors, it will show the output 20
B. Compile time error, the printf braces aren't closed
C. Compile time error, there are no open braces in #define
D. None of the mentioned
Answer: Option A
Join The Discussion