#include<stdio.h>
int add(int arr[], int n)
int b[100].j=1,N,i;
b[0]=arr[0];
for(i=0;i<n-1;i++)
N=arr[i]+arr[i+1];
b[j]=N;
j++;
for(i=0;i<n;i++)
arr[i]=b[i];
return *arr;
int main
int arr[100],n,i;
scanf("%d",&n);
for(i=0;i<n;i++)
scanf("%d",&arr[i])
add(arr,n)
printf("Array");
for(i=0;i<n; i++)
printf("%d ", arr[i]);
why do I get core dumped to this question??
Answers
Answered by
2
Answer:
Computer is a device which make our life easier okkkkkkkkkkkkkkkk
Similar questions