Name an advantage of linked list over array?

Answer Posted / amarpreet

getting an element from array is easybut from linked list
it is difficult because you have to search from start node
and traverse through each and every node

Is This Answer Correct ?    10 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

#include #include #include #include void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort

2056


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

1636


What is polymorphism explain?

676


What is the benefit of oop?

565


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1826






What is the point of oop?

643


Which is not an object oriented programming language?

530


What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

1973


What is inheritance in simple words?

617


What is encapsulation in oops?

530


Why it is called runtime polymorphism?

572


Is oop better than procedural?

561


How do you define a class in oop?

619


What is constructor in oop?

577


What is the real time example of inheritance?

630