rendered paste body#include <stdio.h>
#define SIZE 10
/* function prototypes */
void addarrays( int [], int []);
main()
{
int a[SIZE] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
int b[SIZE] = {9, 8, 7, 6, 5, 4, 3, 2, 1, 0};
int p[SIZE] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
addarrays(a, b, p);
int ctr = 0;
for (ctr = 0; ctr < SIZE; ctr ++ )
{
printf("%d + %d = %d\n", first[ctr], second[ctr], p[ctr]);
}
return 0;
}
void addarrays( int first[], int second[], *p[])
{
int (*p)[SIZE];
int ctr = 0;
for (ctr = 0; ctr < SIZE; ctr ++ )
{
p[ctr] = first[ctr] + second[ctr];
printf("%d + %d = %d\n", first[ctr], second[ctr], p[ctr]);
}
}