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 / shahzad
B)
coz ..linked list node contain two parts ..
one is address to next node
other is data part in single list....
writting keyword struct before NODE is must..
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What are variables and it what way is it different from constants?
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
Can we change the value of constant variable in c?
What are the features of c language?
what are non standard function in c
What is the use of static variable in c?
What is the difference between exit() and _exit() function in c?
What is conio h in c?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
what is a constant pointer in C
Explain about the constants which help in debugging?
What is the equivalent code of the following statement in WHILE LOOP format?
How can you increase the size of a statically allocated array?
Write a program to know whether the input number is an armstrong number.
How do you write a program which produces its own source code as output?