#include<iostream.

h> struct node { int nid; node *next,*adj,*ptr; int v; }; node* create(node *p,int i,int n,node* k) { if(i<=n) { p->nid=i; p->adj=p->ptr=NULL; i++; p->next=new node; create(p->next,i,n,k); p->v=0; cout<<i<<"th node created"; } p=NULL; return k; } void main() { int n,i=1; cout<<"ENTER NO OF NODES"; cin>>n; node *p,*k; p=new node; k=p; p=create(p,i,n,k); }