Top

Discussion

The preprocessor directive which checks whether a constant expression results in a zero or non-zero value __________

  • A.#if
  • B.#ifdef
  • C.#undef
  • D.#ifndef

Answer: A

#if checks whether a constant expression results in zero or not. If the expression is a non-zero value, then the statements between #if and #endif will be executed. If the constant expression results in a zero value, the statements between #if and #endif will not be executed.

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

Post your comment