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.