Why should we use inline functions, why not to use macros #define?
1
Expert's answer
2010-07-27T10:35:55-0400
Inline functions do not have double calculation errors. For example if we have a macro #define absolute(i)((i)>=0 ? (I) : (-i)) and inline function inline int absolute_f(int i) (return i>=0 ? i:-i;), then when you call absolute(f ()) function f() will be called twice; that will not happen when you call inline function.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment