what is the difference between arrays and linked list
Answer Posted / soumen goswami
1)Array has a static storage where as in linked list it is
dynamic.
2)To add some elements in an array is impossible since the
size is predefined.For the same case we can add elements at
the beginning,in the middle and also in the end.
3)To access the data from array is very easy while to access
data from linked list is some complex.
| Is This Answer Correct ? | 25 Yes | 9 No |
Post New Answer View All Answers
Mention four important string handling functions in c languages .
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
What is equivalent to ++i+++j?
Are enumerations really portable?
What is the benefit of using an enum rather than a #define constant?
What is a nested loop?
What is the benefit of using #define to declare a constant?
Is stack a keyword in c?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
What is a newline escape sequence?
Is c a great language, or what?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
What is indirection in c?
What is const volatile variable in c?
How can I recover the file name given an open stream or file descriptor?