Skip to content
Related Articles

Related Articles

Improve Article

C | Macro & Preprocessor | Question 11

  • Difficulty Level : Medium
  • Last Updated : 28 Jun, 2021
Geek Week

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

Take a step-up from those “Hello World” programs. Learn to implement data structures like Heap, Stacks, Linked List and many more! Check out our Data Structures in C course to start learning today.
My Personal Notes arrow_drop_up
Recommended Articles
Page :