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

Discussion

Preprocessor directive #ifdef .. #else ... #endif is used for conditional compilation.

  • A.True
  • B.False

Answer: A

Correct answer: True

#ifdef / #else / #endif is exactly the mechanism for conditional compilation: only one branch survives preprocessing, and the other never reaches the compiler at all. It is the usual way of adapting a source file to different platforms or of compiling out debugging code.

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

Post your comment

Please log in or register to post a comment.