Is double link list a linear data structure? If Yes, Why?If
No, Why?

Answers were Sorted based on User's Feedback



Is double link list a linear data structure? If Yes, Why?If No, Why?..

Answer / vinita khandavi

Yes ,
The data are stored in the linear manner in memory..
all Linked list are linear data structures..

Tree, Table, Graph, Hash Table are nonlinear data structures..

Is This Answer Correct ?    6 Yes 4 No

Is double link list a linear data structure? If Yes, Why?If No, Why?..

Answer / kiran

A data structure is said to be linear, if the elements are accessed in sequence. As the nodes of a DLL are accessed in sequence(starting from the first node, one after the other), it is a linear data structure.

Is This Answer Correct ?    0 Yes 0 No

Is double link list a linear data structure? If Yes, Why?If No, Why?..

Answer / arti

yes,

Is This Answer Correct ?    1 Yes 2 No

Is double link list a linear data structure? If Yes, Why?If No, Why?..

Answer / anil kumar

no,,because in doublelinked list the data is stored
dynamically,we can't acces a data directly without knowing
its base address

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More C Interview Questions

write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

0 Answers  


What is the output of the following program #include<stdio.h> main() { int i=0; fork(); printf("%d",i++); fork(); printf("%d",i++); fork(); wait(); }

8 Answers   ADITI, Adobe,


Go through this linked list concept.While traversing through the singly linked list sometimes the following code snippet "while(head != NULL)" is used and other times "while(head->link != NULL)"is used(Here head is the pointer pointing to the first node,node has two parts data part and link part).What is the difference between head != NULL and Head->link != NULL and in which situation are they used?

1 Answers   Oracle,


I have a varargs function which accepts a float parameter?

0 Answers  


number 2 plssssss help !!....using array.. turbo c.. create a program that will accept a number and determine if it is a happy number or an unhappy number.. example: enter a number : 7 7*7=49 then 4 and 9 4*4 and 9*9== 16 + 18 gives you 97 then 9 and 7 9*9 and 7*7 == 81 + 49 gives you 130 then 1 and 3 1*1 and 3*3 == 1 + 9 gives you 10 1*1 gives you 1 sample output: 7= 49= 16+81= 97= 81+49=130 =1+9=10 =1 "7 is a happy number" . if the last number is 2 then the number being inputed is not a happy number.

3 Answers  






What is the best way to comment out a section of code that contains comments?

0 Answers  


Explain what is the benefit of using an enum rather than a #define constant?

0 Answers  


main() { int i=5; printf("%d%d%d%d",i++,i--,i); }

10 Answers  


In which area global, external variables are stored?

3 Answers  


HOW CAN ADD OUR FUNCTION IN LIBRARY.

5 Answers  


Is main an identifier in c?

0 Answers  


give an example of type casting by a simple c program

2 Answers   TCS,


Categories