English
Tamil Nadu Board of Secondary EducationHSC Science Class 11

What is a reference variable? What is its use? - Computer Science

Advertisements
Advertisements

Question

What is a reference variable? What is its use?

Short Note

Solution

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
  Is there an error in this question or solution?
Chapter 9: Introduction to C++ - Data Types, Variables and Expressions - Evaluation - Section - B [Page 150]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 11 TN Board
Chapter 9 Introduction to C++
Data Types, Variables and Expressions - Evaluation - Section - B | Q 4. | Page 150
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×