If you want your array to have 5 integers in it, you have to put 5 integers into it. The compiler can't read your mind. You've told it to put one integer into position 0, so it put one integer into...
Type: Posts; User: dlorde
If you want your array to have 5 integers in it, you have to put 5 integers into it. The compiler can't read your mind. You've told it to put one integer into position 0, so it put one integer into...
1. You have declared an array that can hold 5 int values, but you haven't put any int values into it...
2. Your 'for' loop has a misplaced semi-colon at the end of the 'for...' statement, so the...