Does defining a function inline mean that it wont push and
pop things on/off the stack ...like parameters and the
return the address??
Answers were Sorted based on User's Feedback
Answer / jomb
yes... because the function call to inline function will
substitute the code for the function in the place of
function call, instead of transfering the control to the
function... so, no need to push or pop.
| Is This Answer Correct ? | 4 Yes | 0 No |
What can I use instead of namespace std?
What is the importance of mutable keyword?
C++ program output? Explain output of this program. #include <iostream> using std::cout; using std::cin; int main() { cout<<cout<<' '; cout<<cin; return 0; } It prints some address in hexadecimal. what is it?
catch(exception &e) { . . . } Referring to the sample code above, which one of the following lines of code produces a written description of the type of exception that "e" refers to? a) cout << e.type(); b) cout << e.name(); c) cout << typeid(e).name(); d) cout << e.what(); e) cout << e;
is throwing exception from a constructor not a good practice ?
What is the difference between an array and a list?
In a class only declaration of the function is there but defintion is not there then what is that function?
find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.
Explain this pointer?
How do you compile the source code with your compiler?
What are static variables?
I 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.