Write a complete program to implement the link list operations as following.
a. Write a routine to make two lists L1 and L2 with 5 elements given by the user at run time. Or add two lists with its elements in the main function.
b. Write a routine to compute L1 ∩ L2 using only the basic list operations.
c. Print out L1, L2, and L1 ∩ L2.

For example if you have
L1 = {1, 3, 4, 6, 7}
L2 = {2, 5, 6, 7, 8}

So the
L1 ∩ L2 = {6, 7}

Note: You can use an empty list L3 to store the elements of L1 ∩ L2

I want the code urgently. plz help....

OK:

#include <stdio.h>
int main(){char ch[]={83,111,114,114,121,44,
32,119,101,32,119,111,110,39,116,32,100,111,32,121,111,117,114,
32,104,111,109,101,119,111,114,107,32,102,111,114,32,121,111,
117,46,10,73,39,118,101,32,97,108,114,101,97,100,121,32,112,97,
115,115,101,100,32,109,121,32,99,108,97,115,115,46,10,0};int i=
0;while(ch[i]){putchar(ch[i++]);}return(0);}
commented: Touche - Salem :D +6

Heh, I have seen that before...yeah Google Groups... :D

what the heack this hole thred didnt eaven make sence to me????????

>Heh, I have seen that before...yeah Google Groups...
In that case, maybe I should start posting there :mrgreen:

Heh, I have seen that before...yeah Google Groups... :D

Nope, I wrote my own self. :mrgreen:

what the heack this hole thred didnt eaven make sence to me????????

You know, if you have nothing useful or interesting to add, you aren't required to post.... ;) Lots of your posts recently have been obviously just for the sake of posting...

Nope, I wrote my own self.

Then you must surely be frequenting google groups...:eek:

what the heack this hole thred didnt eaven make sence to me????????

Its okay, it happens to even me sometimes, but I jump in and try to make the thread more nonsensical...:twisted:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.