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

Discussion

Which of the following is not a preprocessor directive?

  • A.#error
  • B.#pragma
  • C.#if
  • D.#ifelse

Answer: D

Correct answer: #ifelse

There is no #ifelse directive. The conditional set is #if, #ifdef, #ifndef, #elif, #else and #endif - the “else if” form is spelt #elif. #error and #pragma are both real directives.

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

Post your comment

Please log in or register to post a comment.