K
kelvSYC
How do you iterate through an array of structs? I tried something like
this and it doesn't work (my compiler says "illegal operand"):
struct foo f[10];
for (i = 0; f; i++) {
// Insert code here
}
-------------------
If you have a function like this:
void foo(struct bar *b[]);
How do you call it? Would
struct bar a[10];
foo(a);
work?
this and it doesn't work (my compiler says "illegal operand"):
struct foo f[10];
for (i = 0; f; i++) {
// Insert code here
}
-------------------
If you have a function like this:
void foo(struct bar *b[]);
How do you call it? Would
struct bar a[10];
foo(a);
work?