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
Can we assign integer value to char in c?
What is #include stdio h?
Define recursion in c.
What is scope rule in c?
What is a function in c?
Is using exit() the same as using return?
I came across some code that puts a (void) cast before each call to printf. Why?
what is event driven software and what is procedural driven software?
How can you increase the allowable number of simultaneously open files?
What does it mean when a pointer is used in an if statement?
What is the scope of an external variable in c?
What is a null pointer in c?
Explain the advantages and disadvantages of macros.
What is the difference between procedural and functional programming?
What are the loops in c?