Sunday, 4 January 2015

Programming Quiz-56


const int perplexed = 2;
 #define perplexed 3
main()
 {
  #ifdef perplexed
  #undef perplexed
  #define perplexed 4
  #endif
   printf(“%d”,perplexed); }

a. 0
b. 2
c. 4
d. none of the above 


Answer: C

No comments:

Post a Comment