Last active
May 5, 2018 08:09
-
-
Save jdumont0201/3945ad1b2521203cc5310f865d4aa628 to your computer and use it in GitHub Desktop.
Avoid global scope variables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
const int GLOBAL_VAR = 8; | |
int main(){ | |
std::cout << GLOBAL_VAR << std::endl; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment