void interseccao(int *x, int n, int *y, int m, int *inter, int *tam_inter){ int aux[MAX], tam_aux = 0; concatenacao(x, n, y, m, aux, &tam_aux); repetidos(aux, tam_aux, inter, tam_inter); }
int main() { int A[100], B[100]; int n, m; printf("Ingrese dato n:"); scanf("%d",&n); printf("Ingrese dato m:"); scanf("%d",&m); llenararreglo(A,n); llenararreglo(B,m); mostrararreglo(A,n); mostrararreglo(B,m); printf("La Cantidad de Repetidos entre A y B es:%d\n", repetidos(A,n,B,m)); //system("pause"); }