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

What is the difference between typedef struct and struct?

844


How can you determine the maximum value that a numeric variable can hold?

901


Explain 'bit masking'?

842


How to draw the flowchart for structure programs?

8983


What is function prototype in c language?

819


Explain a file operation in C with an example.

889


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

993


What is the purpose of 'register' keyword in c language?

820


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

924


Do pointers store the address of value or the actual value of a variable?

838


Which is the best website to learn c programming?

824


What are the rules for the identifier?

889


What should malloc(0) do?

823


What is a good way to implement complex numbers in c?

808


How do we open a binary file in Read/Write mode in C?

976