What is the difference between inline functions and macros?
Answer Posted / 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 |
Post New Answer View All Answers
What is encapsulation in C++? Give an example.
How does atoi function work?
What new()is different from malloc()?
Can we define function inside main in c++?
What is an adaptor class in c++?
What is a rooted hierarchy?
What is a storage class? Mention the storage classes in c++.
what is C++ exceptional handling?
What is a volatile variable in c++?
What are the various compound assignment operators in c++?
Explain the difference between realloc() and free() in c++?
State the difference between pre and post increment/decrement operations.
What is std namespace in c++?
What is the difference between a definition and a declaration?
Define the operators that can be used with a pointer.