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 |
What is the purpose of sprintf() function?
Find occurence of a character in a sting.
#include<stdio.h> main() { int a[3]; int *I; a[0]=100;a[1]=200;a[2]=300; I=a; Printf(“%d\n”, ++*I); Printf(“%d\n”, *++I); Printf(“%d\n”, (*I)--); Printf(“%d\n”, *I); } what is the o/p a. 101,200,200,199 b. 200,201,201,100 c. 101,200,199,199 d. 200,300,200,100
struct tag{ auto int x; static int y; };main() { struct tag s; s.x=4; s.y=5; printf(“%d”,s.x); }
Can the size of an array be declared at runtime?
How will you write a code for accessing the length of an array without assigning it to another variable?
Explain what is meant by 'bit masking'?
Compare interpreters and compilers.
write a program to arrange the contents of a 1D array in ascending order
Describe static function with its usage?
a 'c' program to tell that the set of three coordinates lie on a same line
What is FIFO?