Created
April 20, 2026 07:20
-
-
Save pkutaj/1e1c7181ab9c3150ee3b40b8382d0656 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 my_func() { | |
| int local_var = 42; | |
| printf("code address of my_func: %p\n", (void*)my_func); | |
| printf("stack address of local_var: %p\n", (void*)&local_var); | |
| } | |
| my_func() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment