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 happens when the extern "c" char func (char*,waste) executes?
Are vectors passed by reference c++?
Specify different types of decision control statements?
whats the size of class EXP on 32 bit processor? class EXP { char c1; char c2; int i1; int i2; char *ptr; static int mem; };
Explain the difference between c & c++?
What do you mean by function overriding & function overloading in c++?
Is vector a class in c++?
Can a constructor throw a exception? How to handle the error when the constructor fails?
Define copy constructor.
In a class only declaration of the function is there but defintion is not there then what is that function?
reading material is provided 3 books for c++ if u need more do let me know thnx i hve lots of material do let me know if u want it
What is the meaning of c++?