Question 10
Back to Exercise
What does inline mean for a C function?
- A The compiler must copy the body into every call
- B It is a hint; the compiler may or may not expand the calls in place Correct
- C The function is executed at compile time
- D The function becomes a macro
Correct Answer: Option B
inline suggests expanding calls in place and changes linkage rules, but the compiler decides. Unlike a macro, an inline function is type-checked and evaluates each argument exactly once.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!