A

Admin • 828.03K Points
Coach

Q. Which of the following correctly defines a macro with parameters?

  • (A) #define SQUARE(x) x*x
  • (B) #define SQUARE x*x
  • (C) #define SQUARE(x) (x*x)
  • (D) #macro SQUARE(x) x*x
  • Correct Answer - Option(C)
  • Views: 13
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin
Use parentheses to avoid unexpected precedence issues.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.