Q. 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
πŸ’¬ Discuss
βœ… Correct Answer: (A) Used in a header file to avoid its inclusion more than once.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
288
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
84%
Success Rate