Reference variables are defined like regular variables, except there is a(n) & in front of the name.
What is a reference variable?
- A reference variable is an alternative name for an existing variable, or we could say that it gives the existing variable a new name.
- It needs to be initialized right away, can't be NULL, and can't be changed to refer to another variable. The & operator is used to declare reference variables.
- Reference is a constant pointer that can be used. Its initialization must occur during declaration, and its contents cannot be altered.
- Since it has already been implicitly de-referenced, retrieving the referenced value doesn't require the de-referencing operator (*).3
- Reference variables are defined like regular variables, except there is a(n) & in front of the name.
To learn more about reference variable refer to:
https://brainly.com/question/14290505
#SPJ4