What is the difference between inline functions and macros?

Answers were Sorted based on User's Feedback



What is the difference between inline functions and macros?..

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

What is the difference between inline functions and macros?..

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

What is the difference between inline functions and macros?..

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

What is the difference between inline functions and macros?..

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

What is the difference between inline functions and macros?..

Answer / hr@tgksolutions.com

• 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

Post New Answer

More C++ General Interview Questions

What do you mean by storage classes?

1 Answers  


Why would you make a destructor virtual?

3 Answers   Lehman Brothers,


Write about the various sections of the executable image?

0 Answers  


What is bubble sort c++?

0 Answers  


how many rounds and wt type of questios ask in the written test for first round 2. tech. round 3. and futher rounds

0 Answers   Thought Works,


In c++, what is the difference between method overloading and method overriding?

0 Answers  


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?

0 Answers   Honeywell,


What are the stages in the development cycle?

0 Answers  


Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers

0 Answers  


What's the order in which the local objects are destructed?

0 Answers  


Which format specifier is used for printing a pointer value?

0 Answers  


What is the difference between = and == in C?

20 Answers   Christ University, Intel,


Categories