Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int hoge[10];
- int x = 4;
- printf("%d", hoge[x]"); // ← こういう指定(変数で添字を指定)もできる! スゴイ!
- int i;
- for (i = 0; i < 10; i++) {
- printf("%d", hoge[i]); // ← 配列の中身に対してまとめて操作できる! スゴイ!
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement