In the call to fact, why did we pass val - 1 rather than val--
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:6| Question number:35
All Answers
total answers (1)
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:6| Question number:35
total answers (1)
The order of evaluation is undefined for the operator `*`, thus the expression `return factorial(val--) * val` make equal to either of the following expressions:
need an explanation for this answer? contact us directly to get an explanation for this answer