void sum l(int[],int);
#include<iostream.h>
void main ()
int a[]={1,2,3,4};
{ int size=sizeof(a)/sizeof(int);
cout<<"sum of the array elements is:";
sum l(a, size); }
void sum l(int a[],int size)
{int sum=0;
for (int i=0; i<=size; i++)
{sum+=a[i];}
cout<<sum;}. #write flow chart and algorithm for given programme
Answers
Answered by
1
Answer:
bhot badha sawal hain hi
Answered by
0
Answer:
int size = sizeof(arr)/sizeof(arr[0]);
Explanation:
Similar questions