Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to create a reference variable in C++

Answer Posted / hrpynux@gmail.com

When a variable is declared as a reference, it becomes an alternative name for an existing variable. A variable can be declared as a reference by putting '&' in the declaration.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;

2006


What is the auto keyword good for in c++?

1174


Explain how overloading takes place in c++?

1029


What are the benefits of oop in c++?

1209


What is the full form of ios?

1048


What is anonymous object in c++?

1076


What does it mean to declare a member function as virtual?

1060


Why is it called c++?

1019


How many ways can a variable be initialized into in C++?

1005


What is pair in c++?

1057


Explain the virtual inheritance in c++.

1049


What is the main purpose of c++?

1053


Which function should be used to free the memory allocated by calloc()?

1015


Write about the members that a derived class can add?

959


When to use “const” reference arguments in a function?

1058