Created
January 30, 2021 04:13
-
-
Save nickbclifford/adeec4e7495585e8a1241c86996f1cc5 to your computer and use it in GitHub Desktop.
Revisions
-
nickbclifford created this gist
Jan 30, 2021 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ #include <stdio.h> int* get_ptr() { int x = 7; return &x; } int main(void) { int* my_ptr = get_ptr(); printf("%d\n", *my_ptr); return 0; }