When one must use recursion function? Mention what happens when recursion functions are declared inline?
1235I 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.
1188Post New C++ General Questions
Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
What is class definition in c++ ?
Why do we use classes in c++?
What are the two shift operators and what are their functions?
Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .
Write about the role of c++ in the tradeoff of safety vs. Usability?
What is else syntax in c++?
Which is the best c++ compiler for beginners?
Can char be a number c++?
What are the various situations where a copy constructor is invoked?
What is abstract class in c++?
Can comments be longer than one line?
When is the destructor called?
What is the difference between global variables and local variable
Explain what are single and multiple inheritances in c++?