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
Why is python slower than c?
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
What is a keyword?
What is structure and union in c?
How can I discover how many arguments a function was actually called with?
Can you pass an entire structure to functions?
What is the significance of scope resolution operator?
Function calling procedures? and their differences? Why should one go for Call by Reference?
What is c method?
How can I send mail from within a c program?
What are # preprocessor operator in c?
Tell us something about keyword 'auto'.
Can a pointer be null?
What does it mean when the linker says that _end is undefined?
How many types of operator or there in c?