Skip to content
Related Articles

Related Articles

C | Macro & Preprocessor | Question 11
  • Difficulty Level : Medium
  • Last Updated : 17 Aug, 2013

What is the use of “#pragma once”?
(A) Used in a header file to avoid its inclusion more than once.
(B) Used to avoid multiple declarations of same variable.
(C) Used in a c file to include a header file at least once.
(D) Used to avoid assertions

Answer: (A)


Quiz of this Question

Attention reader! Don’t stop learning now. Get hold of all the important C++ Foundation and STL concepts with the C++ Foundation and STL courses at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up
Recommended Articles
Page :