Created
July 17, 2019 01:39
-
-
Save surinoel/de5dd0d94aa51cf8dfcb211f9a6d2b0a 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
#include <stdio.h> | |
int main(void) { | |
int arr[5] = { 1, 2, 3, 4, 5 }; | |
printf("(arr) addr : %p\n", arr); | |
printf("(arr + 1) addr : %p\n", arr + 1); | |
printf("(&arr + 1) addr : %p\n", &arr + 1); | |
return 0; | |
} | |
#if 0 | |
(arr) addr : 008FF964 | |
(arr + 1) addr : 008FF968 | |
(&arr + 1) addr : 008FF978 | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment