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?
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?