Q. Which preprocessor directive stops multiple inclusions?

  • (A) #define ONCE
  • (B) #ifndef
  • (C) #pragma once
  • (D) Both 2 and 3
πŸ’¬ Discuss
βœ… Correct Answer: (D) Both 2 and 3
Explanation: #ifndef with #define and #endif, or #pragma once, can prevent multiple inclusion.
Explanation by: Mr. Dubey
#ifndef with #define and #endif, or #pragma once, can prevent multiple inclusion.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
99
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
92%
Success Rate