> 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.
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953