Vidyalelo
Data Structure · Q371

Sorting Algorithms

Programming · Data Structure · question 371

Q371

There is a one line error in the following routine. Find that line. 1. int Max(int a[], int n) 2. 3. int mi, i; 4. for (mi = 0, i = 0; i a[mi]) 6. mi = i; 7. return mi; 8.

A.
Line 2
B.
Line 4
Answer
C.
Line 6
D.
Line 5

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board