CS Electrical And Electronics
@cselectricalandelectronics

What is Inline Functions?

All QuestionsCategory: Cpp LanguageWhat is Inline Functions?
Anonymous asked 3 years ago
1 Answers
Anonymous answered 3 years ago
  • Inline functions will be embedded in place of function calls by the compiler (Replace function call by definition)
  • It’s a request to the compiler, the compiler may ignore the inline request
  • The compiler may apply inline for small functions implicitly
  • Cons and Pros
    • Faster Execution (Pros)
    • Increased Memory Footprint(Cons)