Answer Posted / utpal kumar kashyap
Hi to Everyone,
See, inline function is a function whose code get inserted instead of jump to the function where it was called.
We can make any function as inline but there are few conditions in which compiler will not treat it as inline function....
If
1. Function contains any static variable.
2. It recursive.
3. Function code is large.
However, if function body is large and in this case if we try to make it as inline, then compiler wont give an error, but compiler would treat it as normal function. So idea is this, function code should be small for making it inline.
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What operators can you overload in c++?
Is c++ a high level language?
State two differences between C and C++.
Where is atoi defined?
Is it legal in c++ to overload operator++ so that it decrements a value in your class?
the maximum length of a character constant can be a) 2 b) 1 c) 8
Can constructor be private in c++?
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?
Which software is used to run c++ program?
Which field is used in c++?
What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard
What is auto used for in c++?
When there is a global variable and local variable with the same name, how will you access the global variable?
What is c++ w3school?
Is set c++?