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

โˆ™ 2011-08-01 16:16:47
This answer is:
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
User Avatar

Add your answer:

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

What is the difference between strings and string arrays?

What is your understanding of structures? Discuss how structures work in programming


Which data structures are indexed structures?

Arrays.


Difference between a structure and an array?

Structures and arrays are somewhat similar in that they both "contain" multiple items of data in one package. Arrays contain several copies of the same type of data one after another. An array's elements must all be "char", "int", "float", pointers of a single type, structs or any other type. Structures, on the other hand, contain multiple variables, each with a specific data type. Structures can also contain arrays. The actual, literal differences between structures and arrays involve understanding addresses and pointers, which may come in handy later on during your foray into more advanced concepts in C.


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.


Difference between arrays and linked list?

Difference between arrays and linked list?


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?

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


What are the constitutional differences between the senate and the house of representatives?

How have the differences in constitutional structures and responsibilities of the House and Senate affected the development of the 2 chambers


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 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 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;


What were the main similarities and differences between the Greek and Persian political structures?

They both ate lots and l;ots of beacon


Is String a linear data structure?

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


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 are the similarities and differences between lists and arrays?

I am assuming that you are talking about Linked List and Arrays, Linked list are made up of nodes, which reference data and another node. Arrays on the other hand are just simply blocks in the memory to hold sequential data. Thus Arrays require contiguous memory (the memory allocated must be together, and increasing this allocation may need a new location, since new data may overflow to pre-existing data), while Linked Lists do not. Since Linked Lists are "linked" sequentially, there is no support for random access (all access must be traversals from the front to the desired value). Arrays are more efficient for data structures that are rarely modify (thus getting around the contiguous memory requirement), and Linked List allow efficient modification (all adds and removes are constant efficiency, while arrays must shift elements).


Difference between arrays and pointers in c language?

There is a difference: a pointer is a number that literally points to a place in memory. Arrays are groupings of a type. There is a close relationship between pointers and arrays, however: every expression with arrays (example: array[i]) can be expressed with pointers (example: *(array + i)), because for the computer, an array is just a list of pointers to the type of the array.


Differences between members of the same species are called?

Homologous structures. ps go to who's the cutest.com and click on the pie button


What were the main similarities and differences between Greek and Roman political structures?

The main similarities and differences between Greek and Roman political structures are as follows: Leadership of aristocracy with elements of democracy; Local autonomy/primacy; City-state units; Rome more emphasis on laws which unified population; and Rome had more success in creating a centralized government.


Different kinds of data structures?

There are different types of data structures available. They include simple files, tables with different lengths, arrays with one length, linked lists, and index files.


What differences can you see between the pig's mouth structures and your own and how can you explain these differences?

A pigs mouth structure is much wider than a humans. They also have more rounded teeth and less total teeth.


What is Data Structures?

The data structures are user defined data types specifically created for the manipulation of data in a predefined manner. Examples of data structures would be stacks,queues,trees,graphs and even arrays(also reffered as data structure)


What is the difference between arrays and structure?

In the C programming language, a structure may contain MULTIPLE DATA TYPES, also including arrays of those types, and the structure becomes a USER-DEFINED type. An array may contain a number of items all of the SAME TYPE, including user-defined types such as structures (see above).


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.