ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
What's the difference between a linked list and an array? 
 Question Submitted By :: Gvsk05
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What's the difference between a linked list and an array?
Answer
# 1
An array is simply a collection of variables of similar 
datatype while a linklist is a collection of nodes where 
each node is a combination of a data value and pointer to 
another record.
 
Is This Answer Correct ?    0 Yes 0 No
Paridhi
 
  Re: What's the difference between a linked list and an array?
Answer
# 2
an array allocates continous memory allocation whereas a 
linked list does not allocates continous memory,
 
Is This Answer Correct ?    0 Yes 0 No
Shatul
 
 
 
  Re: What's the difference between a linked list and an array?
Answer
# 3
in array we are having limted memory size(by intializing the
array size).but in the linked list we dont want to intialize
the size because it is the list of elements.there will many
tyes of linked list,by our requirements we can use any one
of the linkedlist.
 
Is This Answer Correct ?    0 Yes 0 No
Santosh
 
  Re: What's the difference between a linked list and an array?
Answer
# 4
array is static ,where we need to intialize the size in 
starting , but linkelist is dynamic , we can dynamically 
add the any variable in to the list
 
Is This Answer Correct ?    0 Yes 0 No
Shilpa
 
  Re: What's the difference between a linked list and an array?
Answer
# 5
In an array elments accessing is easy. Accessing time of 
1st element and 1000th element is same,but not in linked lists.
 
Is This Answer Correct ?    0 Yes 0 No
Div
 
  Re: What's the difference between a linked list and an array?
Answer
# 6
I accept the answer 2 ,then we can delete the specified 
node in the linked list,but the same thing we can't do in 
arrays..
 
Is This Answer Correct ?    0 Yes 0 No
Vikraman85
[Anna University!]
 
  Re: What's the difference between a linked list and an array?
Answer
# 7
Array is statically allocated group.  Linked list is 
dynamically allocated group.
 
Is This Answer Correct ?    0 Yes 0 No
Valli
 
  Re: What's the difference between a linked list and an array?
Answer
# 8
We can allocate memory DYNAMICALLY in linked list where as 
in array static allocation of memory is there. In array 
contiguous memory allocation procedure is there where as in 
linked list we can allocatememory where we want.
 
Is This Answer Correct ?    1 Yes 0 No
Noopur
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
how many times does the loop iterated ? for (i=0;i=10;i+=2) printf("Hi\n"); TCS6
void main() { char far *farther,*farthest; printf("%d..%d",sizeof(farther),sizeof(farthest)); } ME3
write a program to find out number of on bits in a number? Huawei11
What will be result of the following program? void myalloc(char *x, int n) { x= (char *)malloc(n*sizeof(char)); memset(x,\0,n*sizeof(char)); } main() { char *g="String"; myalloc(g,20); strcpy(g,"Oldstring"); printf("The string is %s",g); } a) The string is : String b) Run time error/Core dump c) The string is : Oldstring d) Syntax error during compilation e) None of these IBM2
What is the function of ceil(X) defined in math.h do? A)It returns the value rounded down to the next lower integer B)it returns the value rounded up to the next higher integer C)the Next Higher Value D)the next lower value Accenture3
2. What is the function of ceil(X) defined in math.h do? A)It returns the value rounded down to the next lower integer B)it returns the value rounded up to the next higher integer C)the Next Higher Value D)the next lower value Accenture2
write a c program to accept a given integer value and print its value in words  2
helllo sir , what is the main use of the pointer ,array ,and the structure with the example of a programe  1
6)swap(int x,y) { int temp; temp=x; x=y; y=temp; } main() { int x=2;y=3; swap(x,y); } after calling swap ,what are yhe values x&y?  2
if a person is buying coconuts of Rs10,and then sell that coconuts of Rs9,with the loss of one rupee.After that the person became a millaniore.how? Wipro5
Convert the following expression to postfix and prefix (A+B) * (D-C)  1
dibakar & vekatesh..uttejana here..abt ur reply for in place reversal of linked list..wats p stands for there?  1
enum colors {BLACK,BLUE,GREEN} main() { printf("%d..%d..%d",BLACK,BLUE,GREEN); return(1); } ME2
write an interactive program to generate the divisors of a given integer. TCS2
f() { int a=2; f1(a++); } f1(int c) { printf("%d", c); } c=? Geometric-Software2
11. Look at the Code: #include<string.h> void main() { char s1[]="abcd"; char s2[10]; char s3[]="efgh"; int i; clrscr(); i=strcmp(strcat(s3,ctrcpy(s2,s1))strcat(s3,"abcd")); printf("%d",i); } What will be the output? A)No output B) A Non Integer C)0 D) Garbage Accenture5
To what value do nonglobal variables default? 1) auto 2) register 3) static  4
pick out the odd one out of the following a.malloc() b.calloc() c.free() d.realloc() TCS1
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice) Subex1
What are advantages and disadvantages of recursive calling ? HP6
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com