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:
User Avatar
Study guides

What are advantages of Database Approach

What is a network that covers a large geographical area such as a city country or world

What is the worlds largest wan

What is a network server

See all cards
214 Reviews

Add your answer:

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

Which data structures are indexed?


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.

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

People also asked