When one must use recursion function? Mention what happens when recursion functions are declared inline?
614I 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.
578Post New C++ General Questions
What is the two main roles of operating system?
What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?
Describe Trees using C++ with an example.
What is the copy-and-swap idiom?
What is c++ manipulator?
Which programming language's unsatisfactory performance led to the discovery of c++?
Why #include is used?
What is function prototyping? What are its advantages?
Should I learn c or c++ first?
When to use “const” reference arguments in a function?
Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?
Is java as fast as c++?
Why is "using namespace std;" considered bad practice?
Can user-defined object be declared as static data member of another class?
What is abstraction in c++?