Close
Close

i am not getting the below ques can any one explain this with code

   neeraj@rajak

Write a user-defined function to find the sum of an array passed as argument.
-Write a program that declares an array of 10 elements and uses this
function to

a) Find the sum of all elements.

b) Find the sum of first 5 elements.

c) Find the sum of last 5 elements.


Answers

Ask Yours
Post Yours
Write your answer