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 are different types of loops in c++?
Write a C++ Program to Generate Random Numbers between 0 and 100
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
Which programming language's unsatisfactory performance led to the discovery of c++?
How would you use the functions randomize() and random()?
What do you mean by enumerated data type?
When should overload new operator on a global basis or a class basis?
What is c++ in english?
What are enumerations?
What is c++ redistributable?
If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3
Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?