Top

Discussion

Which of the following is not a preprocessor directive?

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

Answer: D

#ifelse is not a preprocessor directive. #error, #pragma, #if are preprocessor directives. There is a preprocessor directive, #elif, which performs the function of else-if.

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

Post your comment