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 / gorgeousgirl

all the four given options throws error...

the correct answer should be:

typedef struct node NODE;
struct node {NODE*next;int x;};

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we assign integer value to char in c?

619


What is #include stdio h?

689


Define recursion in c.

704


What is scope rule in c?

609


What is a function in c?

577






Is using exit() the same as using return?

682


I came across some code that puts a (void) cast before each call to printf. Why?

685


what is event driven software and what is procedural driven software?

2019


How can you increase the allowable number of simultaneously open files?

599


What does it mean when a pointer is used in an if statement?

606


What is the scope of an external variable in c?

571


What is a null pointer in c?

600


Explain the advantages and disadvantages of macros.

630


What is the difference between procedural and functional programming?

523


What are the loops in c?

597