WHAT IS GLOBAL VARIABLE IN C?
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.
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
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.
need an explanation for this answer? contact us directly to get an explanation for this answer