answersLogoWhite

0


Best Answer

Arrays are collections of repeated data items. Structures are complex data items made up of other data items, including, potentially, other structures and arrays. You can, of course, also have arrays of structures.

Array items can be accessed by using its subscript whereas structure items can be accessed using its dot or "arrow" operator in C, C++, C#, Java, and JavaScript.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the differences between structures and arrays?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which data structures are indexed?

Arrays.


What is the linear data structures?

Linear data structures are 1-dimensional arrays, as in: vectors.


What are the differences between arrays and records in computer programming?

Records are distinguished from arrays by the fact that their number of fields is typically fixed, each field has a name, and that each field may have a different type.


What are the differences between natural and man-made structures?

Natural structures are formed by themselves whereas man made structures are built to look like something ...


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.


What are the differences between natural and man made structures?

man made structures are something that a human builds, and a natural structure is something that comes into the world naturally.


What do you meant by array of structures?

The elements of the arrays are structures. Example: struct { int x, y, z; } cube [8]; cube[0].x = 1;


Is String a linear data structure?

yes it is, other linear data structures are lists,queues,stacks,arrays


What are the similarities and differences between diamond and graphite and Buckminsterfullerene?

similarities -- all are forms of carbon differences -- because of the structures of the bonds of the carbon atoms, they have different properties


What are the differences between frame and shell structures?

Shell structures are enclosed and hollow in the middle e.g. a snail shell or a house. Frame structures are open on the sides e.g. a tree or the Eiffel tower.


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.


How do you get difference between two or more arrays in PHP?

The inherit function `array_dif($arrayOne, $arrayTwo, $arrayThree, ...)` is likely what you're looking for. It compares two or more arrays, and returns an array of values that are unique among the arrays.