What are the differences between a pointer variable and a reference variable in C++?

I know references are syntactic sugar, so code is easier to read and write.

But what is the difference between a pointer variable and a reference variable?

4
42

Leave a Comment