I know about when you should use references and why you use it etc. .
But what is a reference in the memory. I sometimes like to think that a reference
is a constant pointer that cannot be re-assigned. But do references contain the address to a variable like pointers do? Or do references contains something else?
If references also contain addresses like pointers, then why are there references in the first place when you can just use constant pointers?
not only not worth, it would actually be wrong to: references are not objects by definition (and that is why they don't have a size and can't be placed in arrays, among other things).