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
what will be maximum number of comparisons when number of elements are given?
explain what is an endless loop?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
How can I direct output to the printer?
What is the benefit of using const for declaring constants?
What is getch c?
`write a program to display the recomended action depends on a color of trafic light using nested if statments
what will be the output for the following main() { printf("hi" "hello"); }
Explain continue keyword in c
What are the functions to open and close the file in c language?
What is the right type to use for boolean values in c? Is there a standard type?
#include
How many types of functions are there in c?
What is wrong with this initialization?
What does typedef struct mean?