Machine-translated by Google. Questions are authored in English.
Top

Discussion

Macros with arguments are not allowed.

  • A.TRUE
  • B.May Be
  • C.FALSE
  • D.Can't Say

Answer: B

Correct answer: FALSE

Function-like macros with arguments are perfectly ordinary: #define MAX(a,b) ((a) > (b) ? (a) : (b)). They are only textual substitution, which is why the parameters need parenthesising, but they are certainly allowed.

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

Post your comment

Please log in or register to post a comment.