Created
September 14, 2018 17:00
-
-
Save dibakarsutradhar/4925a9cbbc5e14f5085d56a127318e26 to your computer and use it in GitHub Desktop.
This file contains hidden or 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> | |
void vars() { | |
// this is a local variable | |
int x = 10; | |
std::cout << x; | |
} | |
int main() { | |
std::cout << "x is: "; | |
vars(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment