What do you mean by Data Structures?
It is a collection of data that is stored in an organized way to perform certain operations in programming.
Classification of Data Structures
Primitive Data Structures
These are built-in data structures and are fundamental types used in programming languages.
Examples - int, float, char
Non-Primitive Data Structures
These are user-defined data structures and created using primitive data types.
Examples - Student of a class has various attributes like Name, Age, Marks, Roll No, etc
Arrays
Arrays are used to store a large number of elements with similar data types. Each element will have an index and data type. Index will start from "0".
Arrays - One Dimensional
Here, the array length = 6
To access the elements of the array = arr_name[index]
From the example, a[3] = 67
Arrays - Two Dimensional
Two-Dimensional arrays will be in the “Matrix” form.
Here, No of rows = 3
No of columns = 3
To access the elements = matrix_name[row_Index][column_Index]
From the example, a[2][1] = 12