45 101
Assignments Done
98%
Successfully Done
In February 2017
Your physics homework can be a real challenge, and the due date can be really close — feel free to use our assistance and get the desired result.
Be sure that math assignments completed by our experts will be error-free and done according to your instructions specified in the submitted order form.
Our experts will gladly share their knowledge and help you with programming homework. Keep up with the world’s newest programming trends.

Answer on C++ Question for Jazz

Question #506
Why should we use inline functions, why not to use macros #define?
Expert's answer
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.
tip Your question requires fast and guaranteed response?   Please   SUBMIT IT

Comments

No comments. Be first!

Leave a comment

Ask Your question