how can we return the address of the node which we are searching for?
How to return address of the searched node
hello @Mudit809
simply return pointer to that node.
node * search(something){
if(currentnode->data==target){
return currentnode;
}
something
}