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 is malloc return c?

593


please send me the code for multiplying sparse matrix using c

1712


What is oops c?

598


What are actual arguments?

639


What is %d used for?

579






What are global variables?

636


When should we use pointers in a c program?

618


Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record

4734


Is a pointer a kind of array?

590


What is this infamous null pointer, anyway?

603


Is stack a keyword in c?

628


Difference between pass by reference and pass by value?

648


What is || operator and how does it function in a program?

620


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1289


What are void pointers in c?

570