Passing pointer variable

can we write void insertathead(node**head, int data) {
node*n=new node(data) ;
n->next=*head;
*head=n;
}

@deck123 no you can’t do that , you can try on your compiler it will give error i think