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 |
What is a constant? Explain with an example.
Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?
int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}
What are access specifiers in C++?
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.
How would you differentiate between a pre and post increment operators while overloading?
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?
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++?
What is the meaning of c++?
What are structures and unions?
What is difference between class and function?