Skip to content

Latest commit

 

History

History

Arrays

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Array

An array is a linear data structure where elements are stored in contiguous memory locations. Each element is accessed using an index.

| Index | 0   | 1   | 2   | 3   | 4   |
|-------|-----|-----|-----|-----|-----|
| Value | 10  | 20  | 30  | 40  | 50  |

Description:

  • Structure: Linear, fixed-size, elements stored in contiguous memory.
  • Access: Directly by index.
  • Traversal: Sequential from start to end.
  • Use Cases: Suitable for simple, ordered collections where direct access is needed.