Is double link list a linear data structure? If Yes, Why?If
No, Why?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
How to calculate sum
explain memory layout of a C program
how to find out the reverse number of a digit if it is input through the keyboard?
Design a program using an array that lists even numbers and odd numbers separately from the 12 numbers supplied by a user.
What is header file definition?
What are identifiers and keywords in c?
2.Given the short c program that follows a. make a list of the memory variables in this program b.which lines of code contain operations that change the contents of memory? what are those operations? Void main( void) { Double base; Double height; Double area; Printf(“enter base and height of triangle :”); Scanf(“%lg”, &base); Scanf(“%lg”, &height); Area=base*height/2.0; Printf(“the area of the triangle is %g \n”,area); }
What are pragmas and what are they good for?
shorting algorithmS
What is the use of volatile?
Describe the header file and its usage in c programming?
How does placing some code lines between the comment symbol help in debugging the code?