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 the difference between typedef struct and struct?
How can you determine the maximum value that a numeric variable can hold?
Explain 'bit masking'?
How to draw the flowchart for structure programs?
What is function prototype in c language?
Explain a file operation in C with an example.
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
What is the purpose of 'register' keyword in c language?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
Do pointers store the address of value or the actual value of a variable?
Which is the best website to learn c programming?
What are the rules for the identifier?
What should malloc(0) do?
What is a good way to implement complex numbers in c?
How do we open a binary file in Read/Write mode in C?