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

Determine Output:
#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

1 Comment
Nitin Devghare
Nitin Devghare 6 years ago
How to solve