When one must use recursion function? Mention what happens when recursion functions are declared inline?
1188I 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.
1130Post New C++ General Questions
Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be
What are abstract data types in c++?
What is the auto keyword good for in c++?
What are separators in c++?
Can we sort map in c++?
What is DlgProc?
What would happen on forgetting [], while deallocating an array through new?
What does return 0 do in c++?
Explain unexpected() function?
Which field is used in c++?
In inline " expression passed as argument are evalauated once " while in macro "in some cases expression passed as argument are evaluated more than once " --> i am not getting it plz help to make me understand....
Explain the isa and hasa class relationships. How would you implement each?
What is the use of 'this' pointer?
What is the default access level?
Why do we use classes in programming?