I believe that External (or Global) Integers (extern int) are able to be used outside of a function, whereas a standard integer is supposed to be used inside of a function.
(keep in mind, I'm in no way a cpp programmer, i simply know how to google things properly to have a proper outcome)