What are References in C++? What is a local reference?- A restricted type of pointer in C++ is known as a reference.
- A reference can be assigned only once and cannot have a null value.
- A reference which has a local scope i.e., in a method or in a block or in a function is known as local reference.
- It allows you to create a second name for the variable that can be used to read or modify the original data stored in that variable.
|