June 8, 2010

Tip of the Day #2 - pointers

Remember
int* ptr;
*ptr = 10;
#but
ptr = new int;
#without ampersand and dereference !!

No comments:

Post a Comment