Possible Duplicate:
Difference between pointer variable and reference variable in C++
I am trying to figure out what the big difference is between using pointers and references. Is it like reference for stack objects and then pointers for heap? But then can't you have pointer on the stack?