Arrays and Memory

Learn how array elements are stored in memory.

Ordinary variables in memory

i, j, k, l, and m are ordinary variables. They may or may not be stored in adjacent memory locations. This is indicated in the output of the first printf( ).

Get hands-on with 1400+ tech skills courses.