...

/

Pointers and Arrays

Pointers and Arrays

Get to learn how C uses pointers to reference arrays.

We'll cover the following...

Arrays under the hood

When we declare an array using an expression like int vec[5];, what is really happening behind the scenes, is that a block of memory is being allocated (on the stack in this case) large enough to hold five integers, and the vec variable is a pointer that ...