answersLogoWhite

0

What are the advantages of arrays?

Updated: 8/11/2023
User Avatar

Wiki User

14y ago

Best Answer

Advantages:

1. You can use one name for similar objects and save then with the same name but different indexes.

2. Arrays are very useful when you are working with sequances of the same kind of data (similar to the first point but has a different meaning).

3. Arrays use reference type and so.

Disadvantages:

1. Sometimes it's not easy to operate with many index arrays.

2. C environment doesn't have checking machism for array sizes.

3. An array uses reference mechanism to work with memory which can cause unstable behaviour of operating system (unless special methods were created to prevent it) and often even "blus screen" and so on. store the many characters or vales in a single variable.

User Avatar

Wiki User

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

Wiki User

13y ago

In comparison to what? For what purpose?

An array is built of a series of elements that each hold a strongly typed value, that is it's purpose and should be used when you need to store data in that fashion (e.g. A series of dates that need to be sorted).

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

Arrays are advantageous because they provide an orderly structure in which you can store large amounts of data. And their multi-dimensional capabilities allow efficient data characteristic storage as well. Plus, the only alternative to arrays is a long list of variables, which are hard to keep track of and don't have the indexing (search) capabilities of an array.

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

Array basically store a similar kind of data with a commomn signature. So only by changing on the number of an array we can fetch a particualr value . So you can do a linear search by using array.

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

The advantage of an array (in any programming language) is that the array stores several pieces of data with the same variable name, and that the same commands can be used to refer to any element - elements are distinguished through the subscript.

For a comparison with and without arrays, imagine you have 100 numbers, and want each of them to have an initial value of 5. // Without arrays: value001 = 5; value002 = 5; value003 = 5; value004 = 5; ... value100 = 5; // With an array: for (int i = 0; i

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

Arrays can store more than one value, and if set up correctly, even different data types. This is useful for generating lists, allowed filetypes for uploads, etc.

This answer is:
User Avatar

Add your answer:

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

What is multidimentional array?

Arrays having more than one dimension is known as multi-dimensional arrays. Multi-dimensional arrays is also known as arrays-of-arrays.


What is a multidimentional array?

Arrays having more than one dimension is known as multi-dimensional arrays. Multi-dimensional arrays is also known as arrays-of-arrays.


What is a PHP function that can sort arrays by other arrays?

You cannot sort arrays by other arrays; that wouldn't make sense, anyway.


What do arrays eat?

Arrays are reported to be omnivoire.


How do you find the difference between two arrays in Java?

for arrays you can list the different arrays and what attributes that you give to them.


Arrays whose size can be altered are known as?

Arrays whose size can be altered are known as dynamic arrays.


What are the types of arrays and syntax?

Arrays can be of following types.


What are advantages of arrays?

It allows redundency and protection against failure, it also decreases the load on each drive (in some forms of RAID) which increases life span and efficience.


What is difference between Bac arrays and DNA arrays?

BAC (Bacterial Artificial Chromosome) arrays are a type of DNA arrays. BAC arrays are usually used for a technique called array CGH (Comparative Genomic Hybridisation) which is used to identify gross deletions or amplifications in DNA (which for example is common in cancer). DNA arrays include BAC arrays but also oligo, cDNA, and promoter arrays. Oligo and cDNA arrays are typically used for gene expression analysis (looking to see how heavily expressed each gene is). Oligo arrays can also be used for SNP (single nucleotide polymorphism) analysis. Promoter arrays are used to identify transcription factor binding sites.


What do we call the numbers that cannot be arranged into 2-row arrays?

we can call the number that cannot be arranged into 2- row arrays multiple arrays.


How many arrays can you make with the 42?

If you answer 42x42,the answer is1 764 arrays.


What is the required syntax for creating C arrays?

The required syntax for creating C arrays include the brackets, array size, variety length arrays, codes like std:vector, classPTR, and many more to create C arrays.