Answer to Question #182121 in C++ for paul

Question #182121

1 What is an array?

.2 Identify the different types of array.

3 Create a simple cpp program that uses array.


1
Expert's answer
2021-04-16T15:41:05-0400

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;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS