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 is volatile variable in c with example?
What is %s and %d in c?
Is a house a mass structure?
Explain the difference between #include "..." And #include <...> In c?
Why is c so powerful?
What is function prototype in c language?
what is the difference between 123 and 0123 in c?
1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if
How to define structures? ·
What is meant by initialization and how we initialize a variable?
What are the different data types in C?
C language questions for civil engineering
What is binary tree in c?
How do I get a null pointer in my programs?
List the different types of c tokens?