Hello everyone,i have a simple regarding doubly linked list.I have two doubly linked list in which data of string type is stored.I gave to just check that whether the two data ae same or not?I have tried by
Code:
temp = head;//head of list 1
temp1 = head1;//head of list 2

if((temp->data) == (temp1->data))
//do something
but this is not working on string type.I have tried it on integer type and it works fine,but what is the problem with string type data??