-Write A C++ Program To Find The Union And Intersection Of Two Sorted Array In Increasing Order .
Logic :- What is Union ?.
In set theory, the union (denoted by ∪) of a collection of sets is the set of all elements in the collection.[1] It is one of the fundamental operations through which sets can be combined and related to each other. source
WikipediaWhat Is Intersection ?.
In mathematics, the intersection A ∩ B of two sets A and B is the set that contains all elements of A that also belong to B (or equivalently, all elements of B that also belong to A), but no other elements. For explanation of the symbols used in this article, refer to the table of mathematical symbols . source
Wikipedia
Output:
Enter The Size Of First Array
9
Enter The Element In First Array
1 2 3 4 5 6 7 8 9
Enter The Size Of Second Array
5
Enter The Element In Second Array
7 8 9 10 11
Union Of Array
1 2 3 4 5 6 7 8 9 10 11
Intersection Of Array
7 8 9
need an explanation for this answer? contact us directly to get an explanation for this answer