Inline parameters : What does the compiler do with the
parameters of inline function, that can be evaluated in
runtime ?



Inline parameters : What does the compiler do with the parameters of inline function, that can be ..

Answer / Shaili Pandey

In C++, inline functions are functions declared with the keyword 'inline'. The purpose is to make the function call as fast as possible by replacing the function call with the function's body at compile time. If an inline function's body can be completely evaluated at compile time using its parameters, the compiler will do so and insert the resulting code instead of the function call.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

How many types of scopes are there in c++?

1 Answers  


Why should you learn c++?

1 Answers  


What is extern c++?

1 Answers  


How can a called function determine the number of arguments that have been passed to it?

1 Answers  


Define a constructor?

1 Answers  


Define a pointer to a data member of the type pointer to pointer?

1 Answers  


What is conversion constructor?

2 Answers   TCS,


Write a C/C++ program to show the result of a stored procedure "PROC_RESET_MAIL" on database "USER_NOTIFY".

2 Answers   ABC, Accenture, DataLand, HCL, Webyog,


Why cout is used in c++?

1 Answers  


program to print this triangle * * * * * *

12 Answers   Infosys,


Explain terminate() and unexpected() function?

1 Answers  


Explain the difference between static and dynamic binding of functions?

1 Answers  


Categories