From d0882e13f0da81ef04e9d1290989e403d3326b11 Mon Sep 17 00:00:00 2001 From: dskaran95 <33151203+dskaran95@users.noreply.github.com> Date: Fri, 27 Oct 2017 20:27:38 +0530 Subject: [PATCH] Update scope.cpp --- scope.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scope.cpp b/scope.cpp index 75286c6..955f30c 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 where a local variable is a variable that is given local scope. 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 +}