Click here to Skip to main content
15,922,015 members

Comments by Christinad a (Top 2 by date)

Christinad a 3-Dec-20 12:21pm View    
the question was is this right ?
Christinad a 3-Dec-20 12:10pm View    
SO this should be the new code?

tuple <int, node="" *=""> delete_node( Node * head );
{
Node * temp= head;
while( temp!=NULL)
{
if (temp->nodeval==0)
{
node* temp;
temp = before_del->next;
before_del->next = temp->next;
delete temp;
}
}
}