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
All technical questions
Explain what is page thrashing?
How can you find the day of the week given the date?
What is the benefit of using #define to declare a constant?
What’s a signal? Explain what do I use signals for?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
How many levels of pointers have?
all c language question
What is string concatenation in c?
What is bash c?
What is extern storage class in c?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
Tell me when is a void pointer used?
Explain how can I convert a number to a string?
When should you not use a type cast?