Created
July 19, 2019 11:43
-
-
Save kaosf/6ca5646df4e4c60a3e476d0681f55b80 to your computer and use it in GitHub Desktop.
Array and Pointer https://gist.github.com/igrep/1baf532d1b5a73a19e3261cd665566c1 を元に作成
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(int argc, char const* argv[]) | |
{ | |
int array[] = { 0, 10, 20, 30, 40 }; | |
for (int i = 0; i < 5; i++) { | |
printf("%d\n", i[array]); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment