Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Why is python slower than c?

1101


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

2196


What is a keyword?

1178


What is structure and union in c?

1165


How can I discover how many arguments a function was actually called with?

1081


Can you pass an entire structure to functions?

1139


What is the significance of scope resolution operator?

1427


Function calling procedures? and their differences? Why should one go for Call by Reference?

1101


What is c method?

1009


How can I send mail from within a c program?

1042


What are # preprocessor operator in c?

1127


Tell us something about keyword 'auto'.

1082


Can a pointer be null?

1041


What does it mean when the linker says that _end is undefined?

1111


How many types of operator or there in c?

1111