When one must use recursion function? Mention what happens when recursion functions are declared inline?
1131I 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.
1078Post New C++ General Questions
When you overload member functions, in what ways must they differ?
What is encapsulation in C++? Give an example.
True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends
What relational operators if statements in c++?
How is c++ used in the real world?
How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?
Should the this pointer can be used in the constructor?
What is null pointer and void pointer and what is their use?
What are static member functions?
What is the difference between #define debug 0 and #undef debug?
What is the main purpose of c++?
Explain the difference between struct and class in terms of access modifier.
What causes a runtime error c++?
What are the two types of comments, and how do they differ?
What is polymorphism and its type in c++?