I am trying to declare an array of structs
, is it possible to initialize all array entries to a default struct
value?
For example if my struct
is something like
typedef struct node
{ int data;
struct node* next;
}node;
Is there a way to declare data to 4
and next to null
? What about 0
and null
?