Hello all!
I was looking at some linked list material and was wondering something. Can you initialize a data member inside a struct like in C++?
i.e.
If that is not correct, can someone suggest something?Code:typedef struct node { int data; struct node * next = NULL; // this is the line in question } LLnode;