Added the disadvantage of the array. (#21379)
This commit is contained in:
committed by
Christopher McCormack
parent
2eb506f7da
commit
958c086a8e
@@ -168,3 +168,5 @@ The reason for C not checking the indexing bound is simple: C is an efficient la
|
||||
|
||||
- When you try to access the last element of the array. Suppose the length of the array A be 4 and while accessing the last element as
|
||||
A[4] will return an error, as the the indexing starts from 0.
|
||||
|
||||
But, the disadvantage of array is that the memory required should be allocated before the run time of the program.
|
||||
|
Reference in New Issue
Block a user