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. |
Login to Continue
It will take less than 2 minutes