When one must use recursion function? Mention what happens when recursion functions are declared inline?
653I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
614Post New C++ General Questions
What is the best c++ compiler for windows 10?
Where and why do I have to put the "template" and "typename" keywords?
Explain function overloading and operator overloading.
State the difference between delete and delete[].
Should I learn c or c++ or c#?
What is the difference between *p++ and (*p)++ ?
Explain the auto storage classes in c++.
What is c++ redistributable?
What do you mean by overhead in c++?
What c++ is used for?
What is the best c++ book for beginners?
When should we use container classes instead of arrays?
What are special characters c++?
What is friend class in c++ with example?
Define pure virtual function?