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 is function and its example?
Where register variables are stored in c?
what is a function method?give example?
What is the difference between new and malloc functions?
What is hashing in c language?
Explain why C language is procedural?
What is a stream?
What is the function of volatile in c language?
What are the 4 types of functions?
Are there constructors in c?
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
Why static variable is used in c?
Wt are the Buses in C Language
What are header files? What are their uses?
Write a program to swap two numbers without using a temporary variable?