हिंदी

What is a reference variable? What is its use?

Advertisements

प्रश्न

What is a reference variable? What is its use?

टिप्पणी लिखिए
Advertisements

उत्तर

Reference variable in C++ is an alias for the existing variable. They store nothing but the address of the variable used at the time of its declaration. It is important to assign the reference variable at the time of declaration, else it will show an error.

shaalaa.com
Variables of Built-in-data Types
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 9: Introduction to C++ - Data Types, Variables and Expressions - Evaluation - Section - B [पृष्ठ १५०]
Advertisements
Share
Notifications



      Forgot password?
Use app×