What's the difference between:
void foo(item* list) { cout << list[xxx].string; }
and
void this(item list[]) { cout << list[xxx].string; }
Suggested element:
struct item { char* string; }
With a pointer pointing to the first of an array of characters
and list
is just an array of elements ...
source share