When one must use recursion function? Mention what happens when recursion functions are declared inline?
1193I 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.
1134Post New C++ General Questions
what are Access specifiers in C++ class? What are the types?
What are iterators in c++?
Why is "using namespace std;" considered bad practice?
What does it mean to declare a member function as virtual?
What are structures and unions?
What is the main function c++?
What is prototype for that c string function?
Explain what is class definition in c++ ?
Is there structure in c++?
Do you know what is overriding?
Which software is used for c++ programming?
Explain the use of vtable.
What do you mean by delegate? Can a user retain delegates?
What is a base class?
Write a function that swaps the values of two integers, using int* as the argument type?