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

How do you construct an increment statement or decrement statement in C?

741


Explain a file operation in C with an example.

663


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

602


What is the difference between variable declaration and variable definition in c?

564


will u please send me the placement papers to my mail???????????????????

1365






What is %s and %d in c?

592


What the advantages of using Unions?

673


Is anything faster than c?

585


#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }

631


How can you allocate arrays or structures bigger than 64K?

683


What is the symbol indicated the c-preprocessor?

696


What is a stream in c programming?

596


How to explain the final year project as a fresher please answer with sample project

469


How do you determine the length of a string value that was stored in a variable?

652


Explain how can I convert a string to a number?

643