Which of the Following will define a type NODE that is a
node in a Linked list?
A)struct node {NODE*next;int x;};type def struct node NODE;
B)typedef struct NODE {struct NODE *next;int x;};
C)typedef struct NODE {NODE *next;int x;};
D)typedef struct {NODE *next;int x;}NODE;
Answer Posted / vikraman85
B is the answer..
b'coz in struct node *next only specify the address of the
next node.. others not..
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Which node is more powerful and can handle local information processing or graphics processing?
What is a function in c?
Why calloc is better than malloc?
Suggesting that there can be 62 seconds in a minute?
How can I read a binary data file properly?
What is sizeof array in c?
Can one function call another?
What is the difference between array_name and &array_name?
What is calloc() function?
What is the difference between fread and fwrite function?
How can you tell whether two strings are the same?
What is memory leak in c?
What is dynamic dispatch in c++?
what is the difference between 123 and 0123 in c?
What is the difference between fread buffer() and fwrite buffer()?