C | Macro & Preprocessor | Question 11
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)
Explanation:
Quiz of this Question
Recommended Posts:
- C | Macro & Preprocessor | Question 14
- C | Macro & Preprocessor | Question 6
- C | Macro & Preprocessor | Question 12
- C | Macro & Preprocessor | Question 7
- C | Macro & Preprocessor | Question 8
- C | Macro & Preprocessor | Question 1
- C | Macro & Preprocessor | Question 9
- C | Macro & Preprocessor | Question 2
- C | Macro & Preprocessor | Question 14
- C | Macro & Preprocessor | Question 10
- C | Macro & Preprocessor | Question 15
- C | Macro & Preprocessor | Question 13
- C | Macro & Preprocessor | Question 4
- C | Macro & Preprocessor | Question 5
- The OFFSETOF() macro



