answersLogoWhite

0

What are the uses of array?

Updated: 12/20/2022
User Avatar

Wiki User

15y ago

Best Answer

Array in most programming langauges like C ,C++, Java etc is a static , homogeneous and linear data structure. A data structure itself is a mathematical and logical model to organise data.It clearly specifies the domain of the data that can be stored in the structure and the collection of valid operations (functions) that can be performed on that data. Array is a linear structure in the sense that the data is organised sequentially(one after another in a contineous chunck of memory). It is a homogeneous data structure i.e. it contains elements which are of the same data type.The data type of array can be inbuilt like int , float ,char, double and even user defined that is created using a structure or a class. The main use of an array is to oragnise homogeneous data together as a group to perform operations on data in a collective manner since traversal and retrieval becomes easy.Whenever a homogeneous list(One Dimendional or Multi-Dimensional)has to be implemented we make use of array.The advantage of array lies in the fact that it uses indexed represenattion enabling us to access any member element directly. The example of practical use of array in progarmming will be creation of index lists, pointer arrays,matrix operations(transpose,addition ,subtraction,multiplication,inverse etc.).

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

15y ago

Storing data.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the uses of array?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which socket by AMD uses a land grid array rather than a pin grid array?

Socket F


How do lga sockets differ from PGA and sec?

They are physically different. LGA (Land Grid Array) uses surface-mountedconnectors, PGA (Pin Grid Array) uses pin connectors, and SECC (Single Edge Contact Cartridge) uses a slot connector.


Does the Simpsons have a yellow background?

No. The Simpsons uses a wide array of complex & detailed backgrounds.


What computer device uses a spinning color wheel in communication with a micropocessor array of mirrors?

DLP projectors are pieces of computer hardware which use the color wheel and microprocessor array you referenced.


What are the uses of a gimbal system?

There are varied uses for a gimbal system. They can be used for something as simple as a coffee cup holder to something as complicated as an array of satellite antennae.


What is a DNA tiling array?

A DNA tiling array uses overlapping DNA fragments. Hundreds of thousands of genomic fragments can be can be spotted onto a glass slide. In most tiling arrays, RNA samples are still hybridized to the slide just like a cDNA array.


Differentiate single dimensional array to double dimensional array?

A single dimensional array is an array of items. A two-dimensional array is an array of arrays of items.


What is meant by irregular dimensional array?

An irregular dimensional array is a special type of multi-dimensional array.First we must understand that a multi-dimensional array is just an array of arrays. Each element in the array is, itself, an array of elements.A regular multi-dimensional array will be an array of size n, with each element containing a separate array of size m. That is, each sub-array has the same size.An irregular multi-dimensional array will be a multi-dimensional array in which each sub-array does not contain the same number of elements.Regular array:array[0] = new array{0, 1, 2}array[1] = new array{3, 4, 5}array[2] = new array{6, 7, 8}array[3] = new array{9, 10, 11}This regular array is an array of size 4 in which each sub-array is of size 3.Irregular array:array[0] = new array{0, 1, 2}array[1] = new array{3, 4}array[2] = new array{5, 6, 7}array[3] = new array{8, 9, 10, 11}This irregular array is an array of size 4 in which the size of each sub-array is not the same.


How do you swap two adjecent no in array in c?

Option 1) Use a temporary variable: int x = array[i]; array[i] = array[i+1]; array[i+1] = x; Option 2) Use bit operators: array[i] ^= array[i+1] ^= array[i];


What is array literal in as2?

An array literal is a comma-separated list of the elements of an array. An array literal can be used for initializing the elements of an array.


How do you swap rows in 2 dimensional array in Java?

[]temp = array[1] array[2]=array[1] array[1]=[]temp


Why the array is starting from zero?

By design; it makes the compiler's work easier. 1-based array's addressing-function: Address (array, index) = Address (array) + (index-1)*Elemsize(array) 0-based array's addressing-function: Address (array, index) = Address (array) + index*Elemsize (array)