Q. Which of the following is true about global variables in C?

  • (A) They are declared inside functions
  • (B) They are accessible only in main()
  • (C) They retain value throughout the program
  • (D) They must be initialized
πŸ’¬ Discuss
βœ… Correct Answer: (C) They retain value throughout the program
Explanation: Global variables persist for the entire duration of the program.
Explanation by: Mr. Dubey
Global variables persist for the entire duration of the program.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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