Pointers and Arrays

Learn the relationship between pointers and arrays.

Introduction

Our goal is to validate the memory drawing we created before by writing code and checking the memory addresses.

This was the function we created:

func()
{
    int x;
    int arr[3];
}

The following is the drawing of the function: