Created
April 20, 2026 07:21
-
-
Save pkutaj/3406e64a86b430ee3ca9849bbde5a503 to your computer and use it in GitHub Desktop.
CTJ-46: The Stack snippet
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 <stdio.h> | |
| void z_func() { | |
| int x = 10; | |
| printf("&x = %p\n", (void*)&x); | |
| } | |
| void y_func() { | |
| int x = 10; | |
| printf("&x = %p\n", (void*)&x); | |
| z_func(); | |
| } | |
| void x_func() { | |
| int x = 10; | |
| printf("&x = %p\n", (void*)&x); | |
| y_func(); | |
| } | |
| int main() { | |
| int x = 10; | |
| printf("&x = %p\n", (void*)&x); | |
| x_func(); | |
| return 0; | |
| } | |
| main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment