Top

Discussion

What will be the output of the following C code?

#include
#define hello 10
main()
{
    #ifdef hello
    #undef hello
    #define hello 100
    #else
    #define hello 200
    #endif
    printf("%d",hello);
}

 

  • A.Error
  • B.10
  • C.100
  • D.200

Answer: C

No answer description available for this question.

No comment is present. Be the first to comment.
Loading…

Post your comment