Header Ads

Set Operations using Liked List


Problem Statement:-


Second year Computer Engineering class, set A of students like Vanilla Ice-cream and set B of students like butterscotch ice-cream. Write C/C++ program to store two sets using linked list. compute and displayvi. Set of students who like either vanilla or butterscotch or both vii. Set of students who like both vanilla and butterscotch viii. Set of students who like only
vanilla not butterscotch ix. Set of students who like only butterscotch not vanilla x. Number of students who like neither vanilla nor butterscotch.


Code:-





Output:-



No comments:

Powered by Blogger.