Turning Learners Into Developers
Codekilla
CODEKILLA
back to course
Lesson 21 / 14914%
Arrays3/11

Memory Representation of Arrays

Row-major vs column-major layout in C.

int nums[5] = {10, 20, 30, 40, 50};nums[0]10nums[1]20nums[2]30nums[3]40nums[4]50indexing starts at 0 — last element is nums[n-1]
Visual explanation diagram · click steps to walk through it

This lesson is Pro only.

Unlock every premium lesson and module — Pro from ₹299 / month (or ₹999 / year, saves ~₹2,589).

Sign in to unlock
// feedback.matters()
Did this lesson help you?