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 |
What is the main purpose of overloading operators?
CAN U SAY WHICH PROGRAMING LANGUAGE IS USED BY DOCTORS....?
What is singleton class in c++?
How many types of classes are there in c++?
When are exception objects created?
What are the conditions that have to be met for a condition to be an invariant of the class?
What is the object serialization?
What is the size of integer variable?
Difference between shift left and shift right?
How can I improve my c++ skills?
write a program that takes 5 digit no and calculate 2 power that no and print it.
How to avoid a class from instantiation?