what is array data structure?
array is a container that can hold a fixed number of items and should be of the same type.
The following component are important terms to understand the concept of Array.
1.Element
2.Index
Representation of array
Basic Operations in Array:
- Traverse - Print all the array elements one by one
- insertion - Adds an element at the given index
- deletion - deletes an element using the give index or by the value
- Search - Searches an element using the given index or by the values
- update - Updates an element at the give index.
No comments:
Post a Comment