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


Please Help Members By Posting Answers For Below Questions

Can include files be nested?

638


what is uses of .net

1282


Is it cc or c in a letter?

580


What does volatile do?

573


Explain how to reverse singly link list.

618






Is a pointer a kind of array?

604


What is a structure in c language. how to initialise a structure in c?

617


Should I learn data structures in c or python?

594


please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

1547


What should malloc(0) do?

623


Is array a primitive data type in c?

589


What is structure padding and packing in c?

632


Explain how can I prevent another program from modifying part of a file that I am modifying?

650


What are integer variable, floating-point variable and character variable?

615


Can we access array using pointer in c language?

652