LearnFrenzy
Sign in Take a free test

Functions · Function Basics MCQ · Question 10

What does the inline keyword do in C? Answer, explanation & discussion

  • MCQ
  • Medium
  • 0 comments
  • Answer explained
  • Moderated community
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!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links