Possible Duplicate:
What are the differences between pointer variable and reference variable in C++?
Pointer vs. Reference
I recently started to 'relearn' c++ and encountered a simple question that i always had.
Int *intp = new int(10);
Int& intref = *intp;
intref prints as 10 *intp does so too.
Also do the prints of &intref and intp equal.
Long story short. Is the difference between &
and *
simply the way you access the value and adress?
Or is there a major difference in usage?