A

Admin • 833K Points
Coach

Q. Which preprocessor directive stops multiple inclusions?

  • (A) #define ONCE
  • (B) #ifndef
  • (C) #pragma once
  • (D) Both 2 and 3
  • Correct Answer - Option(D)
  • Views: 23
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

#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.

Be the first to start discuss.