What is the difference between macros and inline functions?

Answer Posted / karna

when macro function executing the program control go to that macro function definition part
when inline function executed the definition part of function
came in inline functin call part and executed...program control not chance in any where of the program...

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between new and malloc in C?

610


What is a string?

664


How can you increase the allowable number of simultaneously open files?

595


What is the use of #define preprocessor in c?

615


What are all different types of pointers in c?

577






What is pivot in c?

566


What does typedef struct mean?

658


Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

3657


What is printf () in c?

578


What is NULL pointer?

674


Which header file is used for clrscr?

578


What is a file descriptor in c?

560


Is the exit() function same as the return statement? Explain.

659


Explain how can I convert a string to a number?

643


What is the difference between single charater constant and string constant?

622