What if i dont use a parametrised constructor to initalise the data for node.
If i use int *ptr=new node;
ptr->data=value;
ptr->next=NULL;
\in insert at head function
What if i dont use a parametrised constructor to initalise the data for node.
If i use int *ptr=new node;
ptr->data=value;
ptr->next=NULL;
\in insert at head function