Created
July 20, 2021 17:20
-
-
Save Thiago4532/7da14d26d80ebcca228a44c0a9f4d38b 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* cria_ponteiro() { | |
int x = 42; | |
return &x; | |
} | |
int main() { | |
int *p = cria_ponteiro(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment