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

What are shallow and deep copy?

0 Answers  


Explain about vectors in c ++?

0 Answers  


What is meant by forward referencing and when should it be used?

0 Answers  


Is c++ a dying language?

0 Answers  


Do you know about latest advancements in C++ ?

0 Answers   Agilent, ZS Associates,


What will happen if I allocate memory using "new" and free it using "free" or allocate sing "calloc" and free it using "delete"?

3 Answers  


what you know about c++?

0 Answers   IBS,


Define Virtual function in C++.

0 Answers   iNautix,


What is the type of this pointer in c++?

0 Answers  


what is Loop function? What are different types of Loops?

0 Answers  


What is c++ good for?

0 Answers  


Can you help me with this one? Make a program that when a user inputed a Product Name, it will display its price, and when the user inputed the quantity of the inputed product, it will show its total price. The output must be like this: Product Name: Price: Quantity: Total Price: ..this is the list of products to be inputed: Cellphone - 1500 Washing Machine - 5200 Television - 6000 Refrigirator - 8000 Oven - 2000 Computer - 11000 thanks..:D

1 Answers  


Categories