1 What is an array?
.2 Identify the different types of array.
3 Create a simple cpp program that uses array.
Array (in some programming languages also a table, row, matrix, vector) is a data structure that stores a set of values of elements (arrays) identified by an index or a set of indices that take integer (or reduced to integer) values from a given continuous range. One-dimensional analysis can be thought of as an abstract data type - vector.
The dimension of the array is the number of indices required to uniquely address an element within the array [1] [2]. According to the number of indices used, arrays are divided into one-dimensional, two-dimensional, three-dimensional, etc.
Form or structure of an array - information about the number of dimensions and the size (length) of the array for each of the dimensions [3]; can be represented by a one-dimensional array [4].
A feature of an array as a data structure (as opposed to, for example, a linked list) is the constant computational complexity of accessing an array element by index [5]. Array refers to random access data structures.
In the simplest case, an array has constant length in all dimensions and can store data of only one type specified in the description. A number of languages also support dynamic arrays, the length of which can change as the program runs, and heterogeneous arrays, which can store data of different types in different elements.
#include <iostream>
using namespace std;
int main()
{
double Array[12][15];
return 0;
}
Comments
Leave a comment