Embedded System Question: Download Questions PDF
What are the advantages and disadvantages of using macro and inline functions?
Answer:
Advantage:
Macros and Inline functions are efficient than calling a normal function. The times spend in calling the function is saved in case of macros and inline functions as these are included directly into the code.
Disadvantage:
Macros and inline functions increased the size of executable code.
Macros and Inline functions are efficient than calling a normal function. The times spend in calling the function is saved in case of macros and inline functions as these are included directly into the code.
Disadvantage:
Macros and inline functions increased the size of executable code.
Download Embedded System Interview Questions And Answers
PDF
Previous Question | Next Question |
Explain Difference between object oriented and object based languages? | Explain Why cannot arrays be passed by values to functions? |