Differences between structures and arrays


Structures and arrays

<<Previous   Next>>
C - differences between structures and arrays - Jan 11, 2010 at 17:20 PM by Vidya sagar

List out differences between structures and arrays

The following are the differences between structures and arrays:

- Array elements are homogeneous. Structure elements are of different data type. 
- Array allocates static memory and uses index / subscript for accessing elements of the array. Structures allocate dynamic memory and uses (.) operator for accessing the member of a structure.
- Array is a pointer to the first element of it. Structure is not a pointer
- Array element access takes less time in comparison with structures.     

<<Previous   Next>>

Write your comment - Share Knowledge and Experience

Discussion Board

thank you for giving good differences between them

siribabu 05-14-2015 12:51 PM

thank u!

your data ismore help full for me......

surbhi 03-25-2012 11:04 AM


Latest placement tests
Latest links
Home | About us | Sitemap | Contact us