what is the difference between arrays and linked list
Answers were Sorted based on User's Feedback
Answer / debiprasad
in array an element does not contain the reference of next
element.where in link list each element contain reference of
each node.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / karthikeyan
array
for one type of data ( like int array , char array )
memory should be kept in track and managed by the user.
linked list for multiple type of data
| Is This Answer Correct ? | 4 Yes | 6 No |
Answer / mesole
in a linked list data are accessed by a means of pointer
WHILE linear array accessed by a means of subcript
insertion, deletion is very easy with linear array while
in a linked list is a little bits complex
| Is This Answer Correct ? | 25 Yes | 41 No |
Answer / anu
In arrays v cant delete elements in middle but in Linked
list v can do this.
| Is This Answer Correct ? | 71 Yes | 139 No |
Answer / harikrishnan
an array is changable length.a list does not.
| Is This Answer Correct ? | 17 Yes | 124 No |
Is Exception handling possible in c language?
what are the various memory handling mechanisms in C ?
Write a program that will read the input of any number of digits n in a row of shafh showing the breakdown of the printing and printing figures by the recursive function.
What is true about the following C Functions a.Need not return any value b.Should always return an integer c.Should always return a float d.Should always return more than one value.
Result of the following program is main() { int i=0; for(i=0;i<20;i++) { switch(i) case 0:i+=5; case 1:i+=2; case 5:i+=5; default i+=4; break;} printf("%d,",i); } } a)0,5,9,13,17 b)5,9,13,17 c)12,17,22 d)16,21 e)syntax error
What is the process of writing the null pointer?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
in a town the percentage of men is 52 the percentage of total literacy is 48 if total percentage of literate men is 35 of the total population write a program to find the total no of the literate men and women if the population of the town is 80000
52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to count the number of ones in a 32 bit number? 54.write a program that print itself even if the source file is deleted? 55.Given an unsigned integer, find if the number is power of 2?
write an algorithm and a program to count the number of elements in a circularly singly linked list
Diff between for loop and while loop?
How do I use strcmp?