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
Can include files be nested?
what is uses of .net
Is it cc or c in a letter?
What does volatile do?
Explain how to reverse singly link list.
Is a pointer a kind of array?
What is a structure in c language. how to initialise a structure in c?
Should I learn data structures in c or python?
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
What should malloc(0) do?
Is array a primitive data type in c?
What is structure padding and packing in c?
Explain how can I prevent another program from modifying part of a file that I am modifying?
What are integer variable, floating-point variable and character variable?
Can we access array using pointer in c language?