What is the difference between macros and inline functions?

Answer Posted / kiran kumar yakkala

Macro- does not involve in compilation if there is any
logical error also just replaces the code
inline- look like function, but control doesn't goes to
fucntion and execute, it simply replaces the code like
macro but involves in compilation.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know what are the properties of union in c?

573


regarding pointers concept

1563


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

649


What is the c language function prototype?

635


Explain what is a program flowchart and explain how does it help in writing a program?

639






Explain what is the difference between #include and #include 'file' ?

571


What does c mean before a date?

581


What does return 1 means in c?

575


What is the size of structure in c?

691


What is the difference between #include

and #include “header file”?

542


What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

718


What is character constants?

704


What are header files in c programming?

646


can any one provide me the notes of data structure for ignou cs-62 paper

1694


How does struct work in c?

600