I am trying to find the numbers in the two arrays that are in common.
Say they are:
int A[3] = {1, 2, 5};
int B[4] = {1, 5, 9, 10};
Answer should say A \ B = {1, 5}
I have declared the arrays and I am think the rest is correct.Code:#include <stdio.h>
int main (void)
{
int A[3] = {1, 2, 5};
int B[4] = {1, 5, 9, 10};
int x, z;
for( int x = 0; x < 3; x++ )
for( int z = 0; z < 4; z++ )
}
I'm not sure how to find the common numbers or how to associate the loops with the arrays.
New to C and Arrays.