Q. What is the scope of a variable declared outside a function?

  • (A) Global
  • (B) Local
  • (C) Static
  • (D) Private
πŸ’¬ Discuss
βœ… Correct Answer: (A) Global
Explanation: Variables declared outside a function are in the global scope.
Explanation by: Mr. Dubey
Variables declared outside a function are in the global scope.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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