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 / vikraman85

B is the answer..
b'coz in struct node *next only specify the address of the
next node.. others not..

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between c and python?

588


What is use of integral promotions in c?

668


In C language, a variable name cannot contain?

747


Explain how can I convert a number to a string?

652


What are the application of void data type in c?

722






how is the examination pattern?

1599


what are the different storage classes in c?

663


Describe the modifier in c?

608


What is c token?

614


how many key words availabel in c a) 28 b) 31 c) 32

635


What are the 5 elements of structure?

571


What is null character in c?

695


What are unions in c?

584


What is the use of sizeof () in c?

560


Write a code to determine the total number of stops an elevator would take to serve N number of people.

733