What is Arrays ?....?
Answers
Answer:
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.
Answer:
☆Que : What is Arrays
Ans : You are familiar with variables and know that variables are used for storing values. You also know that variables are identified by their names.
BASIC language provides another type of variable also, called Array.
☆Extra Information
Array are different as they do not represent single variable but a collection of multiple variables that are identified a common name.
For example, A(5) is about Array that comprises of 5 variables with common name A. each variable that constitutes the array is called element. Thus the array A(5)bwill comprise of 5 elements .
☆Types of Arrays
Depending upon the type of contents that can be stored in the array, arrays can be classified into following two types.
- Numeric arrays
- string arrays