What is the inline keyword in C++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the inline keyword in C++?

I saw this keyword being used in a tutorial recently when defining a function, but I have no idea what it does.

15th Dec 2019, 1:31 AM
Mateus Oliveira
Mateus Oliveira - avatar
1 Answer
+ 3
Mateus Oliveira, inline is a keyword that is used to define a function. If a function is defined as inline then the compiler places a copy of the code of that function at each point where the function is called at compile time Visit this link 👇 for more information https://www.google.com/amp/s/www.geeksforgeeks.org/inline-functions-cpp/amp/
15th Dec 2019, 3:10 AM
Arsenic
Arsenic - avatar