A

Admin • 828.03K Points
Coach

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
  • Correct Answer - Option(C)
  • Views: 12
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin
Global variables persist for the entire duration of the program.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.