Study this topic

Pointers

A pointer is a value that holds the address of an object (or function), together with the type of what it points to.

Short notes7 min read

Dynamic Memory Allocation

Fixed-size automatic arrays have compile-time sizes, but a variable-length automatic array (VLA) can have a runtime size. Automatic objects have block-based lifetimes, not merely “until function return”; a VLA object lives from its declaration until execution leaves its scope.

Short notes7 min read

Arrays and Their Relation to Pointers

A C array is a fixed number of objects of one type stored contiguously in memory. Arrays and pointers are closely tied: in most expressions an array name turns into a pointer to its first element, and the subscript a[i] is defined through pointer arithmetic.

Short notes6 min read