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
What is a void pointer in c?
why do some people write if(0 == x) instead of if(x == 0)?
What is the best way to comment out a section of code that contains comments?
What is c standard library?
What is %s and %d in c?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
can any one provide me the notes of data structure for ignou cs-62 paper
Can math operations be performed on a void pointer?
Are enumerations really portable?
What is an auto variable in c?
Can a void pointer point to a function?
How arrays can be passed to a user defined function
Explain continue keyword in c
What does 4d mean in c?
Can a variable be both const and volatile?