Linked Lists Questions
struct node {
int data;
struct node* next;
};
why is the next declared as a pointer? and not as a just
struct node next; ??
I will start with basic and then go for advanced questions.
Member • Mar 14, 2012
linked list consist of two parts data and reference to the next nodeEnglish-ScaredThis is the basic declaration we do while working on linked lists.
struct node {
int data;
struct node* next;
};
why is the next declared as a pointer? and not as a just
struct node next; ??
I will start with basic and then go for advanced questions.
Member • Mar 14, 2012
Member • Mar 14, 2012
Member • Mar 14, 2012
Member • Mar 15, 2012
Member • Mar 17, 2012