Created
August 8, 2022 12:12
-
-
Save lokka30/f58e6815229015d83f4dc7b0b29422d2 to your computer and use it in GitHub Desktop.
C Pointers Test
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> | |
| int main() { | |
| char c = 'A'; | |
| char* ptr = &c; | |
| char deref = *ptr; | |
| putchar(deref); | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment