header:
struct node{
int val;
struct node *next;
struct node *prev;
};
Type: Posts; User: iamreb
header:
struct node{
int val;
struct node *next;
struct node *prev;
};
I will do that now, sorry if it confused anyone
i just limited it for testing purposes, also i was able to solve the problem by using double pointers and adding them as parameter to my add_node function, though i have encountered a different...
I have a circular queue using DLL which is using globally declared pointers.
the problem now is that it is not being initialize properly or being cleared thus my code is not working as expected....