modified search feature
This commit is contained in:
+3
-3
@@ -25,7 +25,7 @@ void display()
|
||||
}
|
||||
}
|
||||
|
||||
int search(int value)
|
||||
Node *search(int value)
|
||||
{
|
||||
Node *temp = head;
|
||||
|
||||
@@ -33,13 +33,13 @@ int search(int value)
|
||||
{
|
||||
if (temp->data == value)
|
||||
{
|
||||
return 1;
|
||||
return temp;
|
||||
}
|
||||
|
||||
temp = temp->next;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int count()
|
||||
|
||||
Reference in New Issue
Block a user