Computer Science, asked by srriyo, 1 year ago

give answer fast please :- only computer science student give answer :-

Attachments:

Answers

Answered by Brainlytrainer
9
▪️◾️◼️ ANSWER :-

THE problem in the above code is that the first argument to sum ( ) has been declared as a constant and still the function sum ( ) is trying to modify it using the statement.


arr [ 0 ] = arr [ size - 1 ] ;


A constant argument cannot be modified by the function . the only way to correct the problem is to scrap the statement that modifies the constant argument.


============================================

BE BRAINLY
Similar questions