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

Discussion

Identify the stringizing operator.

  • A.+
  • B.::
  • C.#
  • D.##

Answer: C

Correct answer: #

A single # before a macro parameter is the stringizing operator: it turns the argument’s text into a string literal, so #define str(x) #x makes str(hello) become "hello". The double ## is a different operator - it pastes two tokens into one.

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

Post your comment

Please log in or register to post a comment.