RE: Why use references when pointers can do everything...
hi
References are used when the refered variable cotent are constants. Where as the content of pointer variable are variant may change. So where a constant reference to a variable is required references are used instead of opinters. Best example is in copy constructors one has to use references instead of pointers.