How to create a reference variable in C++



How to create a reference variable in C++..

Answer / 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

More C++ General Interview Questions

Which c++ compiler is best?

0 Answers  


how to swap two numbers with out using temp variable

12 Answers   Global eProcure, TCS,


Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

0 Answers   Cankaya University,


What does floor mean in c++?

0 Answers  


What is the use of "new" operator?

0 Answers  






Why is c++ difficult?

0 Answers  


What is the use of endl?

0 Answers  


How do you find out if a linked-list has an end? (I.e. The list is not a cycle)

0 Answers  


In inline " expression passed as argument are evalauated once " while in macro "in some cases expression passed as argument are evaluated more than once " --> i am not getting it plz help to make me understand....

0 Answers   College School Exams Tests, CS,


What is #include iostream?

0 Answers  


Write a C/C++ program to show the result of a stored procedure "PROC_RESET_MAIL" on database "USER_NOTIFY".

2 Answers   ABC, Accenture, DataLand, HCL, Webyog,


Is turbo c++ free?

0 Answers  


Categories