✏️ Explanatory Question

What is global variable in C?

👁 830 Views
📘 Detailed Answer
💡

Answer with Explanation

  • 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.