Variables in C programming Q - 6

Last Updated :
Discuss
Comments

Which of the following statements is true about global variables?

They are only accessible inside one function

Their lifetime ends after the function ends

They are declared inside main()

They are accessible throughout the program

Share your thoughts in the comments