Q.

Which of the following methods can be used to find the largest and smallest element in an array?

A. recursion
B. iteration
C. both recursion and iteration
D. no method is suitable
Answer» C. both recursion and iteration
Explanation: both recursion and iteration can be used to find the largest and smallest element in an array.
3.2k
0
Do you find this helpful?
31

Discussion

No comments yet