S
sam_cit
Hi Everyone,
A reference is a alias for a variable.
int i =5;
int &b = i;
Is memory allocated for the reference variable like a pointer
variable?
And is it correct that once a reference is set to a reference
variable, it can't be changed again?
Thanks in advance!!!
A reference is a alias for a variable.
int i =5;
int &b = i;
Is memory allocated for the reference variable like a pointer
variable?
And is it correct that once a reference is set to a reference
variable, it can't be changed again?
Thanks in advance!!!