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 / shahzad
B)
coz ..linked list node contain two parts ..
one is address to next node
other is data part in single list....
writting keyword struct before NODE is must..
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Explain is it valid to address one element beyond the end of an array?
How to declare pointer variables?
Which driver is a pure java driver
What are the types of variables in c?
how could explain about job profile
Do character constants represent numerical values?
What is function prototype in c language?
What is the right type to use for boolean values in c? Is there a standard type?
What are the types of macro formats?
Where in memory are my variables stored?
Tell me the use of bit field in c language?
Write a program to implement queue.
Why is c called c?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
What does. int *x[](); means ?