C Program to find Sum of two 1D Arrays

Notes:

C program to find sum of 2 one dimensional arrays:

Example Code:

int a[5] = {1,2,3,4,5};
int b[5] = {5,4,3,2,1};
int c[5] = {0,0,0,0,0};
int i=0;

for(i=0; i<5; i++)
{
c[i] = a[i] + b[i];
printf("%d\n",c[i]);
}