•There are lots of other kinds of scope rules and exceptions that we will see throughout the semester (e.g.):
•
•Global scope
(global variables)
•File
scope
•Class
scope
•Static
Variables
•
•
File and class
scope we will encounter when we get to object oriented programming
Global variables
are a holdover from C. They are strongly discouraged since they lead to
spaghetti code where the flow of execution becomes very difficulty to follow.
Static variables
are not destroyed when their scope ends.