Question: question to be done in C. Use the three recursive functions discussed in class for raising a number to a power to compute (1.12)631. For
question to be done in C.
Use the three recursive functions discussed in class for raising a number to a power to compute (1.12)631. For each function, your program should print out the result of exponentiation and the number of times the function is called. Also print the average execution times.
Estimating execution time #include double execTime; clock_t startTime, endTime; //Enter Code that is not to be timed startTime=clock() //Enter Code whose execution time is to be measured endTime=clock() execTime=(double)(endTime startTime)/CLOCKS_PER_SEC
1.Linear 2. direct 3. indirect
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
