ExamVeda
Login
Home
This question belongs to C Program C Preprocessor
C Preprocessor
?

What will be the output of the program code?
#include<stdio.h>
#define a 10
void main()
{
      #define a 50
      printf("%d", a);
}

Answer & Solution
Correct Answer: Option A

The preprocessor directives can be redefined anywhere in the program. So the most recently assigned value will be taken.

Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.