What is an inline function in c++?



What is an inline function in c++?..

Answer / Ajay Singh

An inline function in C++ is a special function that, when called, is inserted at the point of call (inline expansion) instead of being called indirectly through a function call. The purpose is to optimize execution speed by reducing the overhead associated with function calls.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Is c++ still being used?

1 Answers  


Explain the extern storage classes in c++.

1 Answers  


Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].

1 Answers  


What is the real purpose of class – to export data?

1 Answers  


When a function is made inline. Write the situation where inline functions may not work.

2 Answers  


When you overload member functions, in what ways must they differ?

1 Answers  


What do you mean by enumerated data type?

1 Answers  


What are the storage qualifiers?

1 Answers  


What are the extraction and insertion operators in c++?

1 Answers  


Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers

1 Answers  


What is vector processing?

1 Answers  


Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort

1 Answers  


Categories