What is a local reference?



What is a local reference?..

Answer / Deepak Yadav

A local reference in C++ refers to a reference variable declared within the scope of a function or block. Local references bind to existing variables, which must be passed as arguments to the function or defined before the reference declaration. They cannot refer to temporary objects created during expression evaluation.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is a constant? Explain with an example.

1 Answers  


Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?

1 Answers  


int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}

1 Answers  


What are access specifiers in C++?

3 Answers  


if i want cin 12345678910 and cout abcdefghij. so how can i create the program?. example : if i key in 8910 so the answer is ghij.

3 Answers  


How would you differentiate between a pre and post increment operators while overloading?

1 Answers  


We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?

1 Answers  


Write a String class which has: 1) default constructor 2) copy constructor 3) destructor 4) equality operator similar to strcmp 5) constructor which takes a character array parameter 6) stream << operator

2 Answers   HCL, Lehman Brothers, Zoomerang,


What do you understand by zombie objects in c++?

1 Answers  


What is the meaning of c++?

1 Answers  


What are structures and unions?

1 Answers  


What is difference between class and function?

1 Answers  


Categories