If MC is a C or C++ compiler, you have to put a number inside those brackets to tell it how big that array is going to bel
Record ListOfRecords[100];
You don't need another pointer in order to pass it to another function.
// use only ONE of the following, not all three. It shows three ways
// to code the function.
void foo(Record ListOfRecords[100])
void foo(Record ListOfRecords[]) << this is also ok
void foo(Record* ListOfRecords) << so is this
{
// blabla
}
int main()
{
Record ListOfRecords[100];
// pass the array to function foo()
foo(ListOfRecords); <<< see here
}
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2283
Retired and Enjoying Life
Offline 21,961 posts
since Aug 2005