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
|