Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is a two dimensional array or matrix?

array dimensional matrix
0
Posted

What is a two dimensional array or matrix?

0

A two dimensional array consists of: – a finite, – ordered set of elements – of the same data type. Two dimensional arrays OR matrices are declared in the same way as normal arrays: var arrNames : array[1..20, 1..20] of String; arrAges : array[1..5, 1..1000] of Integer; The array arrNames can contain up to 20 names (String data type) under 20 headings. The array arrAges can contain up to 1000 integer values under 5 headings. We can therefore say when declaring a 2D array or Matrix the first range is the column and the second the different rows. This is also true for the StringGrid component.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123