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
What is the use of typedef in structure in c?
Is it possible to initialize a variable at the time it was declared?
How can you determine the size of an allocated portion of memory?
Explain indirection?
what type of questions arrive in interview over c programming?
How are 16- and 32-bit numbers stored?
how to create duplicate link list using C???
What are external variables in c?
What are data structures in c and how to use them?
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none
Why we use stdio h in c?
How are variables declared in c?
What are the types of assignment statements?
What does the error message "DGROUP exceeds 64K" mean?
write a program fibonacci series and palindrome program in c