What is global variable in C?
Short Answer
Views 731
Answer:
- The variables which are having scope/life throughout the program are called global variables.
- Global variable is defined outside the main function. So, this variable is visible to main function and all other sub-functions.
Related Articles:
This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of C Programming Language, click the links and dive deeper into this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.