Created
March 14, 2022 10:36
-
-
Save webgtx/7ddeb0c0f24f6ff4995391b213566542 to your computer and use it in GitHub Desktop.
Arrays & pointer in C
This file contains 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
int main() { | |
int arr[5] = {3, 5, 4, 7}, idx; | |
for (idx = 0; idx < 5; idx++) | |
printf("item addr: %i | %p \n", *(arr + idx) ,arr + idx); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment