Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- struct abc {
- int n;
- };
- int main() {
- struct abc n[5][2];
- struct abc *p = &n[0][0];
- int x;
- for (x = 0; x < 5; x++) {
- n[x][0].n = x;
- n[x][1].n = (x * 3);
- }
- for (; p < (&n[0][0] + 10); p++) {
- printf("-> %d\n", p->n);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement