
intersections?
ok in math we have unions and intersections. if i have set A={1,2,3} and set B={2,3,4} and i want to find the interection, the elements of set A that are also in set B. is there any way i can check for this? like some special function, basically the question is how is intersection defined in the C language? or am I the one that has to define it?

Intersection is not defined in the C language, so you have to program that logic yourself. Think of your sets as arrays of numbers. Then to find the intersection set, you just need to loop through one of the arrays, checking each values against all the values in the other array. If the value is found in the other array, then you can include it in the intersection set.

yep :) thanks for the tip, didnt think of creating another set that would be the intersection set.