My insert at head function in doubly linklist is giving garbage value

void insert_At_Head(node*&head,int data){
if(head==NULL){
noden=new node(data);
head=n;
return ;
}
node
n =new node(data);
head->prev=n;
n->next=head;
head=n;
return ;
}

please share your complete code by saving it on ide.codingblocks.com