Which among the following is a typical declaration of an unrolled linked list in C?
A.
#define SIZE N
struct node
{
int node_count;
int arr[SIZE];
struct node *next;
};
B.
#define SIZE N
struct node
{
int arr[SIZE];
struct node *prev;
struct node *top;
};
C.
#define SIZE N
struct node
{
int node_count;
struct node *next;
};
D.
#define SIZE N
struct node
{
int node_count;
int arr[SIZE];
};
Answer: Option A
Join The Discussion