Question

Question 5 How to represent a Two-Dimensional array of int A[3][2] with an example and elements position in array. TTTT Parag
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Here given int A[3][2].so it has 2 rows and 3 columns.always an array is represented in the form of a matrix.a two-dimensional array is which has a row and a column.

let's consider the set of elements as A[3][2]={0,1,2,3,4,5}.

The position of elements are as follows:

A[1][1]=0

A[1][2]=1

A[2][1]=2

A[2][2]=3

A[3][1]=4

A[3][2]=5

and the final matric is A=\begin{bmatrix} 0 &1 \\ 2&3 \\ 4&5 \end{bmatrix}

Add a comment
Know the answer?
Add Answer to:
Question 5 How to represent a Two-Dimensional array of int A[3][2] with an example and elements...
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