CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

.......................... function is a function that is expanded in line when it is invoked. That is, the compiler replaces the function call with the corresponding function code.

A
Memory allocation function
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Member function
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
Inline function
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
Default function
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is C Inline function

Inline function is a function that is expanded in line when it is invoked. That is, the compiler replaces the function call with the corresponding function code.

Inline functioninstruct compiler to insert complete body of the function wherever that function got used in code. It also save overhead of variables push/pop on the stack, while function calling. It also save overhead of return call from a function. It increases locality of reference by utilizing instruction cache.

Inline functionis 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 the function is called at compile time.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Computers in Accounting
ACCOUNTANCY
Watch in App
Join BYJU'S Learning Program
CrossIcon