What is inline function | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 6

What is inline function

17th May 2018, 5:40 AM
Mass Mano
5 Respostas
+ 34
inline function instruct compiler to insert complete body of the function wherever the function got used.
17th May 2018, 5:50 AM
PALAK
+ 16
C++ inline functionĀ is powerful concept that is commonly used with classes. If aĀ functionĀ isĀ inline, the compiler places a copy of the code of thatĀ functionĀ at each point where thefunctionĀ is called at compile time. The compiler can ignore theĀ inlinequalifier in case definedĀ functionĀ is more than a line. https://www.tutorialspoint.com/cplusplus/cpp_inline_functions.htm
17th May 2018, 5:42 AM
Abhivarshini Maddala
Abhivarshini Maddala - avatar
+ 4
if u know den y askšŸ¤”šŸ¤”šŸ¤”
17th May 2018, 12:22 PM
Rahul Ramachandra Kalal
Rahul Ramachandra Kalal - avatar
+ 4
Inline function is actually a request to the compiler. We can't guarantee on the functioning of it. Generally it's used for very small functions. And when we use keyword inline, we don't have to declare it explicitly.
18th May 2018, 4:14 PM
Nikhil Barik
Nikhil Barik - avatar
0
a type of function whose coding written with its declaration inside the class (may be šŸ˜‚)
20th May 2018, 2:52 PM
Yashraj Yadav
Yashraj Yadav - avatar