Technical Discussion :: Data Structure
Home > Freshers > Technical Interview Questions > Data Structure
56. Write a structure of doubly linked list?
Answer:
Struct Node{
Int data; //datafield
Struct Node* next;//address field of the next node
Struct Node*prev;//address field of the previous field
}Struct Node node;
Asked In :: Wipro Virtusa Accenture Sopra Steria
Struct Node{
Int data; //datafield
Struct Node* next;//address field of the next node
Struct Node*prev;//address field of the previous field
}Struct Node node;