M

Mr. Dubey • 100.28K Points
Coach

Q. Which preprocessor directive stops multiple inclusions?

  • (A) #define ONCE
  • (B) #ifndef
  • (C) #pragma once
  • (D) Both 2 and 3

Explanation by: Mr. Dubey
#ifndef with #define and #endif, or #pragma once, can prevent multiple inclusion.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics