Data structure - Define in brief an array. What are the types of array operations?

Define in brief an array. What are the types of array operations?

An array is an arrangement of data arranged in a systematic order. An array usually has rows and columns. Each element of an array is accessed using the row and column id.

Array operations:-
Initializing an array:- Specifies the array size. Example: Arr[10];
Assigning :- This operation assigns a value to an array. Example: arr[1]=5;

There are many other operators that can be used to assign.
Data structure - Define in brief an array.

Define in brief an array. What are the types of array operations?

An array is a set of homogeneous elements. Every element is referred by an index.

Arrays are used for storing the data until the application expires in the main memory of the computer system. So that, the elements can be accessed at any time.

The operations are:
- Adding elements
- Sorting elements
- Searching elements
- Re-arranging the elements
- Performing matrix operations
- Pre-fix and post-fix operations
Data structure - What is a matrix? Explain its uses with an example
A matrix is a representation of certain rows and columns, to persist homogeneous data. It can also be called as double-dimensioned array......
Data structure - Algorithm, properties of an algorithm, types of algorithms
Algorithm: A step by step process to get the solution for a well defined problem.......
Data structure - What is an iterative algorithm?
Iterative algorithm - The process of attempting for solving a problem which finds successive approximations for solution, starting from an initial guess.......
Post your comment