Logo 
Search:

C Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C ProgrammingRSS Feeds

C programming practical question 23

  Shared By: Adah Miller    Date: Jan 24    Category: C Programming    Views: 104

Answer:

#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.

Share: 
 

Didn't find what you were looking for? Find more on C programming practical question 23 Or get search suggestion and latest updates.


Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: