Relationship between Array and Pointer in c++




This video tutorial made by the Learning Lad explains the relationship between an array and a pointer in c++.
You will learn how array and pointer are interrelated,how array elements can be accessed using pointers, what will be stored in array name variable, how array elements are stored in memory in detail with examples.

source code for this tutorial

 
#include <iostream>

using namespace std;

int main()
{
    int number[5] = {29,55,44,88,99};

    cout << number[4] <<endl;
     cout << *(number+4) <<endl;


    return 0;
}