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
write a program to find out prime number using sieve case?
What are the usage of pointer in c?
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)
How can you increase the size of a statically allocated array?
Do pointers need to be initialized?
What are called c variables?
Where define directive used?
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above
What is string concatenation in c?
Explain what happens if you free a pointer twice?
Is there a way to switch on strings?
Are pointers integer?
which is an algorithm for sorting in a growing Lexicographic order
Explain continue keyword in c
Explain how do you determine the length of a string value that was stored in a variable?