N
newbiecpp
C++ standard says that a reference is not a object. My question is a
reference has size?
int myInt;
int& myRef = myInt;
myRef is just another name of myInt? My confusion is that if myRef is not
an object, where is myRef reside in memory? Compiler has to keep
information about myRef, but where is this information?
Sorry for my ignorance. Thanks in advance.
reference has size?
int myInt;
int& myRef = myInt;
myRef is just another name of myInt? My confusion is that if myRef is not
an object, where is myRef reside in memory? Compiler has to keep
information about myRef, but where is this information?
Sorry for my ignorance. Thanks in advance.