How to return address of the searched node

how can we return the address of the node which we are searching for?

hello @Mudit809
simply return pointer to that node.

node * search(something){
if(currentnode->data==target){
return currentnode;
}
something
}