wats the error over here:



void addlist(node* headptr,int c)
{

cout<<"headptr value after being passed"<<headptr->val<<endl;
node* temptr11 = new node;
node* temptr1 = headptr;