Q. What is the use of the keyword 'extern'?

  • (A) To declare an external variable
  • (B) To define a function
  • (C) To create local scope
  • (D) To access static members
πŸ’¬ Discuss
βœ… Correct Answer: (A) To declare an external variable
Explanation: 'extern' is used to declare a global variable or function defined in another file.
Explanation by: Mr. Dubey
'extern' is used to declare a global variable or function defined in another file.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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