The procedure of passing more than one arrays to a function is similar to the case of passing a single array. This is illustrated in Program.
#include <stdio.h> void Product(int[], int[], int[], size_t); //Function Prototype with three arrays as parameters int main() { int i, j; int Dal[5]; // declarations of arrays. int Din [5]; int San [5]; clrscr(); printf("Enter 5 decimal numbers for Dal: "); for( i=0;i<5;i++) scanf ("%d", &Dal [i]); printf("Enter 5 numbers for Din: "); for( j=0;j<5;j++) scanf("%d", &Din[j]); // Entering array elements Product( Dal, Din, San, 5); return 0; } void Product(int Dal[], int Din[], int San[], size_t s1 ) { int m; for ( m =0; m<s1; m++) { San[m]= Dal[m] * Din[m]; printf("%d\t", San[m]); } }