Hi, i've just been working through the pointers chapter in my C++ book and come across a confusing part.
What's the difference between using:
int iAge = 20;
int * pAge = &iAge;
int * pAge = new int;
*pAge = 20;
i.e. Why use new and delete when you can just make a pointer like the first method?