When one must use recursion function? Mention what happens when recursion functions are declared inline?
709I 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.
671Post New C++ General Questions
What is the use of 'using' declaration in c++?
What is low level language in simple words?
What is bubble sort c++?
Can we make any program in c++ without using any header file and what is the shortest program in c++.
What is basic if statement syntax?
What is a buffer c++?
What do nonglobal variables default to a) auto b) register c) static
Can circle be called an ellipse?
What is c++ prototype?
Why is c++ still used?
Out of fgets() and gets() which function is safe to use and why?
write a programme to get a character and thier ASCII value
What is polymorphism & list its types in c++?
What do you understand by zombie objects in c++?
How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?