diff --git a/scope.cpp b/scope.cpp index 75286c6..38725f8 100644 --- a/scope.cpp +++ b/scope.cpp @@ -3,6 +3,7 @@ using namespace std; int globalVariable; int localVariable = 25; +// Value of a global variable persists between different function calls. int main(int argc, char const *argv[]){ @@ -19,4 +20,4 @@ int main(int argc, char const *argv[]){ cout << "Value of localVariable is " << localVariable << endl; return 0; -} \ No newline at end of file +}