> void readList(int nums [], int size);
> void printList( int list[1000]);
Notice what's different ?
The 1000 isn't actually doing anything useful (nor is it actually harmful either). It certainly has nothing to do with the size of the array being passed.
Also, read the intro threads and how to use [code][/code] tags.
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Offline 7,164 posts
since Dec 2005