Output is not showing

Make insert_head(node* &head,int d) instead of insert_head(node* head,int d)
And it will print output