What is the difference between inline functions and macros?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between a homogeneous and a heterogeneous container

906


What are inline functions? What is the syntax for defining an inline function?

820


Is C++ case sensitive a) False b) Depends on implementation c) True

811


Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)

1710


What does I ++ mean in c++?

791


Why we use #include iostream in c++?

772


What is setf in c++?

833


What is atoi in c++?

812


What is a hashmap c++?

769


How do you clear a buffer in c++?

725


Will the following program execute?

789


What does floor mean in c++?

808


Do you know the use of vtable?

864


How many namespaces are there in c++?

773


How do we implement inheritance in c++?

824