What are the differences between structures and arrays?



  1. It is user defined data type.

2.contains set of different data type.

  1. uses DOT(.) operator to access the element.

  2. Dynamic memory allocation

5.size may change at Run Time.

6.adding /deleting elements in structure is easy.

  1. It can contains Bit fields.


1.It is derived data type.

2.contains set of related data types.

3.uses subscripts to access elements.

  1. static memory allocation

.5.memory size is fixed.

6.adding /deleting elements in array is difficult

  1. it can’t have Bit fields.