The first line initializes the values of the array.
The second line is a syntax error. It should be int* ptr = &array[0]; The last line sets the value of te first array element to -1.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Offline 21,953 posts
since Aug 2005