Programming: Creating a Global Variable
Positioning a variable or array outside of the main function allows this variable to be used within all functions. All variable positioned outside of the main function are called global variables and the scope of these variables are global, or able to be used anywhere in the program.
Comments and Additional Information
Have some code to share? Or additional information? Respond here:
You need to be logged in to save a response on this page. The response must be constructive, helpful, supplimentary or to correct the existing video, code or narrative content.