#include <stdio.h> #define a 10 int main(void) { #define a 50 printf("%d", a);…

#include <stdio.h>
#define a 10
int main(void)
{
#define a 50
printf("%d", a);
getchar();
return 0;
}

Assume GCC diagnostics remain warnings (no -Werror) and the program is executed. What is printed?

  1. A.

    10

  2. B.

    60

  3. C.

    50

  4. D.

    error

Attempted by 80 students.

Sign up free to check your answer

Sign up free

Explore the full course: C Language

Loading lesson…