It reads integers from the standard input (until it gets a negative number) and puts them into an array. After that it calls processarray on the array, and then prints the contents of the array on standard output.
Answers
Answered by
12
Explanation:
Input : arr[] = { 1, 8, -6, -1, 6, 8, 8 }
Output : 8
All positive elements have an equal negative
value except 8.
Input : arr[] = { 15, 6, -9, 4, 15, 9,
-6, -4, 15, 15 }
Output : 15
Answered by
3
Answer:
Hope this annswer may help u
Attachments:
Similar questions