What do you understand by an array? What is the significance of arrays?
Answers
Answered by
9
Answer:
Array. An array is a data structure that contains a group of elements. Typically these elements are all of the same data type, such as an integer or string. Arrays are commonly used in computer programs to organize data so that a related set of values can be easily sorted or searched.
An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type. It is better and convenient way of storing the data of same datatype with same size. It allows us to store known number of elements in it. CHEERS!!
please mark the brainliest
Answered by
5
The definition and significance of array is listed below:
Explanation:
Definition of An array:
- The array is used to declare or hold the multiple variables of the same type with the one name and it stores the variable in memory in the continuous Passion.
- For example in c language int A[10], A is an array variable that can hold the 10 variable, because its size is 10. Any user can use index numbers to assign the value of the variable. for example--
- The first variable of this array is A[0] and the last variable of the array is A[9]. It is because the starting index value of the array is 0 and the ending index value of the array is (size-1).
Significance:
- It is important because the user can declare multiple variables with the help of this.
- If a program needs so many inputs then it can do easily with the help of array.
- Anyone can increase the number of variable if he increases the size of the array at any time when he needs.
Learn More:
- Array : https://brainly.in/question/8457756
Similar questions
Math,
5 months ago
Biology,
5 months ago
English,
5 months ago
Math,
10 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago