Friday 15 March 2013

#define a 10 and #define a 50


#include <stdio.h>
#define a 10
main()
{
#define a 50
printf("%d",a);
}
Answer:
50
Explanation:
The preprocessor directives can be redefined anywhere in the program. So the most recently assigned value will be taken.



Blog Author: Vijay Kumar

Go to: Java Aptitude

No comments:

Post a Comment