Advantage And Disadvantage Of An Array

7/30/2013 11:09:00 pm Unknown 0 Comments

Array index start from zero.
Advantages of arrays:
 It has a ability of storing a many elements at a time
 It allows random accessing of elements i.e. any element of the array can be random access using indexes.
Disadvantages:
 Determine the size of the array is an essential.
 There is a chance of memory wastage or shortage.
 If we delete one element in an array then we traverse throughout the array..
Creation of an array consists of three steps.
1. First we can declare the array.
2. Then we create a memory
3. And then put a value into memory.

Common type of arrays is: single dimensional array, multidimensional array and etc.