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
Differentiate fundamental data types and derived data types in C.
Is there a way to compare two structure variables?
How do we make a global variable accessible across files? Explain the extern keyword?
What is selection sort in c?
What are disadvantages of C language.
Is c is a low level language?
how to write optimum code to divide a 50 digit number with a 25 digit number??
Can the curly brackets { } be used to enclose a single line of code?
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
How do we open a binary file in Read/Write mode in C?
How can I run c program?
Is c is a middle level language?
What are the types of type specifiers?
How can you draw circles in C?
Write a Program to find whether the given number or string is palindrome.