One dimensional Array — Study Resources & PYQs
Declaration, initialization and manipulation of one-dimensional arrays in C.
- Estimated study time: 30 minutes
Study resources
- C Arrays and Multidimensional Arrays - GeeksforGeeks tutorial (Article) — Covers declaration, initialisation, indexing and multidimensional arrays with examples. Note the point about arrays being stored in contiguous memory, which explains why array-pointer arithmetic work…
- Array of Strings in C - GeeksforGeeks (Article) — Compares the 2D char array approach with the array-of-pointers approach, including the memory wastage in the first. Good bridge between Unit 3 and Unit 6.
- One Dimensional Arrays in C (GeeksforGeeks) (Article) — Explains what a 1D array is, how it's stored in contiguous memory, declaration/initialization, and how array indexing relates to pointer arithmetic.
Taught in these subjects
- COMPUTER PROGRAMMING — CST3101 · Government College of Engineering and Technology, Jammu
- FUNDAMENTALS OF PROGRAMMING USING C — CST3201 · Government College of Engineering and Technology, Jammu
- COMPUTER PROGRAMMING — CST3101 · Government College of Engineering and Technology, Jammu