see the first choice will generate a memory leak. After changing the pointer you should restore it:
pArray += 1;
//..do something
pArray -= 1;
delete[] pArray; John Fill
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.