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 does static variable mean?
Can a variable be both constant and volatile?
Explain what does it mean when a pointer is used in an if statement?
Can stdout be forced to print somewhere other than the screen?
how to find anagram without using string functions using only loops in c programming
What is dynamic variable in c?
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
How does pointer work in c?
What are the complete rules for header file searching?
How to compare array with pointer in c?
What is a protocol in c?
How can I discover how many arguments a function was actually called with?
Explain what standard functions are available to manipulate strings?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
What are the Advantages of using macro