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
When is a “switch” statement preferable over an “if” statement?
What is the code for 3 questions and answer check in VisualBasic.Net?
What is the difference between array_name and &array_name?
Write a program with dynamically allocation of variable.
Not all reserved words are written in lowercase. TRUE or FALSE?
Explain logical errors? Compare with syntax errors.
What is a global variable in c?
What is data structure in c programming?
Explain the use of 'auto' keyword in c programming?
Is it better to use a macro or a function?
What are operators in c?
All technical questions
How can I use a preprocessorif expression to ?
write a program to concatenation the string using switch case?
List the difference between a 'copy constructor' and a 'assignment operator' in C?