C++ | Misc C++ | Question 7

Which of the following is true about inline functions and macros.
(A) Inline functions do type checking for parameters, macros don’t
(B) Macros are processed by pre-processor and inline functions are processed in later stages of compilation.
(C) Macros cannot have return statement, inline functions can.
(D) Macros are prone to bugs and errors, inline functions are not.
(E) All of the above


Answer: (E)

Explanation:

Quiz of this Question

GeeksforGeeks has prepared a complete interview preparation course with premium videos, theory, practice problems, TA support and many more features. Please refer Placement 100 for details

My Personal Notes arrow_drop_up
Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.