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
How do you construct an increment statement or decrement statement in C?
Explain a file operation in C with an example.
Explain the difference between the local variable and global variable in c?
What is the difference between variable declaration and variable definition in c?
will u please send me the placement papers to my mail???????????????????
What is %s and %d in c?
What the advantages of using Unions?
Is anything faster than c?
#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); }
How can you allocate arrays or structures bigger than 64K?
What is the symbol indicated the c-preprocessor?
What is a stream in c programming?
How to explain the final year project as a fresher please answer with sample project
How do you determine the length of a string value that was stored in a variable?
Explain how can I convert a string to a number?