Question
java
To access the element at row i and column / of a two-dimensional array named grades, we would use which of the following? O g
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Question 5 :- first option grades[ i ][ j ] is correct

Reason:- given row index= i and column index = j

In two dimensional array we use the following syntax to represent row index and column index in a 2D array

syntax:- datatype array_name[row_index][column_index];

grades[ i ][ j ]; is correct syntax to use

Question 6:- option d all of these are errors in syntax  is correct  

Reason :- given datatype [ 4][ 0 ][ 3 ] arrayNam:

according syntax it should contain only two brackets for row and column indexes respectively and a syntax should not end with colon

Add a comment
Know the answer?
Add Answer to:
java To access the element at row i and column / of a two-dimensional array named...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT