int numberArray [9][11];
write a statement that assigns 145 to the first colum of the first row of this array.
write a statement that assigns 18 to the last col of the last row of this array

this is what i have

numberArrray [1][1] = 148;
numberArray [9][11] = 18;

Recommended Answers

All 4 Replies

remember that an array's max index is always 1 less than its size, since 0 is included. So for part 1,

numberArray[0][0] = 148;

and #2

numberArray [8][10] = 18;

Above answer is exactly correct ............


please follow that one...........

thanks!!! totally forgot that! :D

Above answer is exactly correct ............


please follow that one...........

Lol...thanks for the insightful contribution.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.