Created
July 20, 2021 17:11
-
-
Save Thiago4532/0440c3f7fb9f862dee32626979a1bc42 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
int main() { | |
int x; | |
// Imprime a posição na memória que | |
// a variável x está localizada | |
cout << &x << '\n'; // 0x7ffd22810b84 | |
// O valor muda sempre que o programa é reiniciado, pois a | |
// variavél é colocada em uma posição diferente na memória. | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment