give answer fast please :- only computer science student give answer :-
Attachments:
![](https://hi-static.z-dn.net/files/dc0/7cbc5fbd2e0290f28b95279776aa175b.jpg)
Answers
Answered by
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
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