When one must use recursion function? Mention what happens when recursion functions are declared inline?
906I 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.
860Post New C++ General Questions
What is the c++ programming language used for?
What is the difference between passing by reference and passing a reference?
What is the difference between containment and delegation?
Can java be faster than c++?
write a programme to get a character and thier ASCII value
Can a built-in function be recursive?
What can I use instead of namespace std?
What is the difference between the functions memmove() and memcpy()?
How do you find out if a linked-list has an end?
How do you decide which integer type to use?
what are the characteristics of Class Members in C++?
What is the difference between global variables and local variable
What will happen if a pointer is deleted twice?
What is else if syntax?
What flag means?