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 do you mean by storage classes?
Why would you make a destructor virtual?
Write about the various sections of the executable image?
What is bubble sort c++?
how many rounds and wt type of questios ask in the written test for first round 2. tech. round 3. and futher rounds
In c++, what is the difference between method overloading and method overriding?
what is software cycle? What is a mission critical system ? What is the important aspect of a real-time system ? Explain the difference between microkernel and macro kernel. Give an example of microkernel.Why paging is used ? Which is the best page replacement algo and Why ? What is software life cycle ? How much time is spent usually in each phases and why Which one do U want to work if selected in Honeywell ? Which are the different types of testing ? What is a distributed system ? Some questions about CSP. Which languages do U know ? What are the differences between Pascal and C. questions from Compiler construction and Lisp. Which are the different computer architecture? What is the requirement in MIMD ? What is the difference between RISC and CISC processors ? Difference between loosely coupled and tightly coupled systems ? What is an open system?
What are the stages in the development cycle?
Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers
What's the order in which the local objects are destructed?
Which format specifier is used for printing a pointer value?
What is the difference between = and == in C?
20 Answers Christ University, Intel,