Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion scope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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[]){

Expand All @@ -19,4 +20,4 @@ int main(int argc, char const *argv[]){
cout << "Value of localVariable is " << localVariable << endl;

return 0;
}
}