Challenge

Project 1 - Creation of user defined data type to implement the user interfaces for working with ‘Set’ (Mathematical Set theory) using Linked List

Project 1 - Creation of user defined data type to implement the user interfaces for working with ‘Set’ (Mathematical Set theory) using Linked List

in above first i included the stdio.h and stdlib.h after that i created the nodelist after that icreated some list and and after by using pritf and scanf i created the no of elements in the list with user input after by using for loop i tried to allocate the memory for no of elements given by the useer afte that i dispayed it 

in intersection part i took two temparary lsit list1 as temp 3 and list 2 as temp 4 after that comparing temp3 and temp4 if it is equal the we have to print the value means in here we print the temp3 vale because in intersection temp3 an temp4 if both values are same we gonna take one of the list and print if it is not equal it will updated here in this temp 3 is constant and temp4 values updated if it is not equal and after all checked temp3 value is uodated 

after that in union list here took again temparary variables first wwe comapare temp1 and temp2 if it is equal only print the temp1 value if it is not equal print the two temp 1 and temp2 value after that both temp1 and temp2 values are updated 

in main functon just call the lsit 1 and list 2 and interswection va;lues and uion values we can see the output in the resuls

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.