Q. The default value of a static variable is _____.

  • (A) 1
  • (B) 0
  • (C) Depends on the compiler
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) 0
Explanation: In C++ programming, static variables always have the default value Zero.
Explanation by: Dharmendra Sir
In C++ programming, static variables always have the default value Zero.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
235
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Dharmendra Sir
Publisher
πŸ“ˆ
80%
Success Rate