09. Arrays
List of values, index 0, loop, bounds warning
Goals:
- Array declare + initialize
- Index 0-based
- Loop se print/sum
1. Array = continuous boxes
int a[5] = 5 ints ek saath.
Pehla element a[0], last a[4].
Technical: memory me side-by-side store. C bounds automatically check nahi karta — galat index = undefined behavior risk.
Live practice 1 — Print array
Values change karke Run.
Live practice 2 — Sum of array
Sum logic samjho.