Ticker

6/recent/ticker-posts

Header Ads Widget

Responsive Advertisement

C program to perform symmetric difference on sets

Symmetric difference:- The sets A and B are those elements in A or B, but not in both A and B. While notation varies for the symmetric difference, Symmetric difference is represented by AΔB and is defined by AΔB=(A−B)∪(B−A)
Example: If A={2,4,6,7,9} and B={2,1,7,8,9}, Then, the symmetric diffrence between set A and set B (AΔB) ={1,4,6,8}



When the above program is executed, it produces following results --



Post a Comment

0 Comments