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
What are valid operations on pointers?
Are comments included during the compilation stage and placed in the EXE file as well?
What does *p++ do? What does it point to?
What are the advantages and disadvantages of a heap?
What are qualifiers in c?
Explain why c is faster than c++?
What is the purpose of main( ) in c language?
In C, What is the #line used for?
How can I insert or delete a line (or record) in the middle of a file?
Explain what’s a signal? Explain what do I use signals for?
Write a program to reverse a given number in c language?
List the difference between a "copy constructor" and a "assignment operator"?
What is an endless loop?
what are bit fields? What is the use of bit fields in a structure declaration?
Which programming language is best for getting job 2020?