What is the difference between inline functions and macros?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
• Inline Functions: Type-checked, replace function calls with code during compilation.
• Macros: Preprocessor directive, no type-checking.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nashiinformaticssolutions
1. Macros: Text substitution; no type checking.
2. Inline functions: Replaced at runtime; provide type checking and debugging benefits.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
1. Macros: Text substitution; no type checking.
2. Inline functions: Replaced at runtime; provide type checking and debugging benefits.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
• Inline Functions: Type-checked, replace function calls with code during compilation.
• Macros: Preprocessor directive, no type-checking.
| Is This Answer Correct ? | 0 Yes | 0 No |
• Inline Functions: Type-checked, replace function calls with code during compilation.
• Macros: Preprocessor directive, no type-checking.
| Is This Answer Correct ? | 0 Yes | 0 No |
Which is the best c++ compiler for beginners?
What is a pointer how and when is it used?
What is a literal in c++?
Write syntax to define friend functions in C++.
What is std namespace in c++?
How would you use the functions memcpy(), memset(), memmove()?
Explain storage qualifiers in c++.
What is the difference between a class and a structure in C++?
How many types of classes are there in c++?
What are associate containers?
How is an Abstract Base Class(ABC) related to an "Abstract Data Type" (ADT)
What does catch(…) mean?