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 disadvantages of a shell structure?

686


What is #include called?

565


Explain what is a pragma?

584


Describe newline escape sequence with a sample program?

647


What is a function simple definition?

608






What is function prototype in c with example?

570


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

612


Explain how do you declare an array that will hold more than 64kb of data?

892


What is a null pointer in c?

587


What is pragma in c?

623


What would be an example of a structure analogous to structure c?

570


What is the use of pointers in C?

612


Differentiate between ordinary variable and pointer in c.

613


code for quick sort?

1616


Write a program to print all permutations of a given string.

638