When one must use recursion function? Mention what happens when recursion functions are declared inline?
890I 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.
835Post New C++ General Questions
what are the iterator and generic algorithms.
What is the best way to declare and define global variables?
What are the benefits of operator overloading?
Give 10 points of differences between C & C++.
Write a program to find the Fibonacci series recursively.
What is the role of static keyword for a class member variable?
When should we use multiple inheritance?
What does catch(…) mean?
What is an undefined reference/unresolved external symbol error and how do I fix it?
What are arrays c++?
Is atoi safe?
What is vectorial capacity?
Is ca high or low level language?
Is it possible for a member function to use delete this?
When does a 'this' pointer get created?