May 2012
Intermediate to advanced
679 pages
16h 56m
English
If we declare a pointer for integer array as
int *p ;
then we can allocate memory as
p = new int [10] ;
It will allocate memory for storing 10 integers.
As C++ is superset of C language, we can refer individual array element as p[i]. No special rules are required.
With this much background, we can go to next topic of “Two Dimensional Arrays Using Pointers”
Read now
Unlock full access