What is the difference between macros and inline functions?

Answer Posted / jayapradap a

the way they are handled. Inline functions are parsed by the compiler, whereas macros are expanded by the C++ preprocesso these are The major difference between inline functions and macros

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are # preprocessor operator in c?

834


What is main function in c?

749


what are the different storage classes in c?

842


Explain the use of function toupper() with and example code?

831


In C language, a variable name cannot contain?

977






Can the sizeof operator be used to tell the size of an array passed to a function?

816


What is an expression?

825


What is the purpose of main( ) in c language?

849


What are loops in c?

744


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

3486


What are the 4 types of organizational structures?

791


Can one function call another?

819


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

774


Tell me when is a void pointer used?

836


Explain the use of keyword 'register' with respect to variables.

784