this is the struct i have declared:
struct node{ int data; struct node* next; };
I have declared the struct node pointer globally