When one must use recursion function? Mention what happens when recursion functions are declared inline?
1195I 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.
1135Post New C++ General Questions
What is the protected keyword used for?
What is searching? Explain linear and binary search.
Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort
Is c++ fully object oriented?
What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass
Can constructor be static in c++?
Is empty stack c++?
What is the difference between object-oriented programming and procedural programming?
Explain the differences between list x; & list x();.
What are the basics of local (auto) objects?
what is data encapsulation in C++?
Evaluate !(1&&1||1&&0) a) Error b) False c) True
What is a flag in c++?
Do you know about latest advancements in C++ ?
What does #define mean in c++?