Top

Discussion

What is the output of this program?

#include 
#define p 17;
int main()
{
  printf("%d",p);
  return 0;
}

 

  • A.Garbage value
  • B.Runtime error
  • C.17
  • D.Compilation error

Answer: D

Preprocessor should not terminate with semicolon.

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

Post your comment