ARRAY
Definition:
Array ek linear data structure hai jisme same data type ke elements continuous memory locations me store hote hain. Elements
ko index ke through access kiya jata hai.
Characteristics:
1. Sabhi elements same data type ke hote hain.
2. Memory allocation continuous hoti hai.
3. Index ke through direct access hota hai.
4. Array ka size fixed hota hai.
5. Random access possible hota hai.
Types of Array:
1. One Dimensional Array – single line me data store hota hai.
2. Two Dimensional Array – rows aur columns ke form me data hota hai.
3. Multidimensional Array – do se zyada dimensions wale array.
Advantages:
1. Data ko fast access kiya ja sakta hai.
2. Sorting aur searching easy hoti hai.
3. Memory management simple hota hai.
Limitations:
1. Size fixed hone ki wajah se flexibility kam hoti hai.
2. Insertion aur deletion difficult hota hai.
3. Kabhi-kabhi memory wastage hoti hai.