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

Why we write conio h in c?

567


How can I automatically locate a programs configuration files in the same directory as the executable?

632


What is const volatile variable in c?

577


What are the different types of pointers used in c language?

612


how could explain about job profile

1451






Explain the difference between the local variable and global variable in c?

602


Difference between pass by reference and pass by value?

658


Where local variables are stored in c?

556


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

2578


Do you know the difference between exit() and _exit() function in c?

609


What extern c means?

539


What is a static variable in c?

667


I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...

9656


Tell us bitwise shift operators?

596


What is anagram in c?

521