Top

Discussion

_______________ is the preprocessor directive which is used to end the scope of #ifdef.

  • A.#elif
  • B.#ifndef
  • C.#endif
  • D.#if

Answer: C

The #ifdef preprocessor directive is used to check if a particular identifier is currently defined or not. If the particular identifier is defined, the statements following this preprocessor directive are executed till another preprocessor directive #endif is encountered. #endif is used to end the scope of #ifdef.

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

Post your comment