I have two arrays each array has some values for instance:
int a[] = {1, 2, 3, 4};
int b[] = {0, 1, 5, 6};
now I need to compare the elements of the array (a) with elements in array (b).. if is there any match the program should return an error or print "error there is a duplicate value" etc.. in the above situation, it should return an error coz a[0] = b[1] because both are have same values.
how can I do this??
thanks.