- 1

Which of the following is correct about inline function?

1) we should use inline keyword to make a member function inline while defining inside the class 2) we have to explicitly use inline keyword to make a function inline while defining outside the class 3)inline is a command to compiler to make a function as an inline function

16th Apr 2020, 10:25 AM
Rajshree Chafekar
Rajshree Chafekar - avatar
1 Respuesta
+ 1
1) and 2) inline member functionts should be defined outside the class just for smart coding 3) the "inline" keyword is used to improve time performance in all context where required (included member functions) Generally speaking the inline keyword is used just for time performance in C and C++ contexts
17th Apr 2020, 3:41 PM
Alex
Alex - avatar