Does the pow(base,exponent) function check whether the exponent is 0 (thus returning 1) before computing, or does it compute the base first? The reason I ask is because I'm using a function as base, and wanting to save time I'd like the program not to run the function if the exponent is 0.
It is noteworthy that if you are passing functions as parameters, you CANNOT assume that they will be called left to right or right to left. This happened to me where my functions were designed to be called in a certain order, left to right, but instead they were being called right to left.