Computer Science, asked by anshg4850, 4 months ago

output of sum (4,6,1) is a) 461 b) 11 c) 164 d) none of these

Answers

Answered by raghakeshini05
0

Answer:

This would mean all elements from array a are added to c=>k must be incremented by n. c would also contain j elements from array b. So, the number of elements in c would be n+j and hence k=n+j. Similarly, when j=m, k=m+i. Hence, the option (D) is correct. (Had k started from −1 and not 0 and we used ++k inside the loop, the answer would have been option (C))

Similar questions