A Moving to another question vill save this tesponse. estion 40 Which of the fol
ID: 3578676 • Letter: A
Question
A Moving to another question vill save this tesponse. estion 40 Which of the following function declarations would be appropriate for a function that updates the snallest paranaerer,irthe value of parameter is greater than snallest?The function body is shown here if (smallest parameter) smallest parameters o A void update smallest (ints smallest, ints parameter) o B void update smallest (int smallest, intR parameter) 9 C void update snallest (int& llest, int parameter) o D. smallest int smallest, int paraneter) id update 4 Moving to another question wll save this responseExplanation / Answer
Q41)
Ans:
B. Multiple calls to the function with the same inputs are made; therefore it calculates the same value many times
Lets assume a call: func(5)
func(7)
/
func(6) func(4)
/ /
func(5) func(3) func(3) func(1)
/
func(4)
So, you can see same calls made many times