Q. What is a variable defined outside a function referred to as?

  • (A) a static variable
  • (B) a global variable
  • (C) a local variable
  • (D) an automatic variable
πŸ’¬ Discuss
βœ… Correct Answer: (B) a global variable
Explanation: the value of a variable defined outside all function definitions is referred to as a global variable and can be used by multiple functions of the program.

Explanation by: Mr. Dubey
the value of a variable defined outside all function definitions is referred to as a global variable and can be used by multiple functions of the program.

πŸ’¬ Discussion

πŸ“Š Question Analytics

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