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                      
tip   SiteMap shows list of All Categories in this site.
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 ?    6 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 ?    6 Yes 2 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 ?    3 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 ?    4 Yes 1 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 ?    5 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 ?    4 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 ?    4 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 ?    2 Yes 0 No
Noopur
 
  Re: What's the difference between a linked list and an array?
Answer
# 9
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 ?    2 Yes 0 No
Presto
 
  Re: What's the difference between a linked list and an array?
Answer
# 10
A linked list consists of data nodes, each pointing to the 
next in the list. An array consists of contiguous chunks 
memory of predetermined size
 
Is This Answer Correct ?    2 Yes 1 No
Ashish Chauhan
 
  Re: What's the difference between a linked list and an array?
Answer
# 11
In linkedlist,The operations(delete,insert&etc)are eazily
perform.Where as in arrays that is not possible.
 
Is This Answer Correct ?    1 Yes 1 No
Raja Sekhar
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
without using arithmatic operator solve which number is greater??????????  1
swap two integer variables without using a third temporary variable?  2
Given a single Linked list with lakhs of nodes and length unknown how do you optimally delete the nth element from the list? Oracle1
#define swap1(a,b) a=a+b;b=a-b;a=a-b; main() { int x=5,y=10; swap1(x,y); printf("%d %d\n",x,y); swap2(x,y); printf("%d %d\n",x,y); } int swap2(int a,int b) { int temp; temp=a; b=a; a=temp; return; } what are the outputs? Ramco4
Name the language in which the compiler of "c" in written? Bajaj1
char ch=10;printf("%d",ch);what is the output Accenture11
macros and function are related in what aspect? a)recursion b)varying no of arguments c)hypochecking d)type declaration HCL8
IS STRUCTURES CAN BE USED WITHIN AN ARRAY? Caritor7
C program to perform stack operation using singly linked list  3
what type of language is C? Microsoft2
void swap(int a,int b) { a=a+b; b=a-b; a=a-b; } in this code always gives the same result for all case TCS7
What's wrong with "char *p; *p = malloc(10);"?  5
Write a program that accepts a string where multiple spaces are given in between the words. Print the string ignoring the multiple spaces. Example: Input: “ We.....Are....Student “ Note: one .=1 Space Output: "We Are Student" IBM4
what's the return value of malloc()  8
what is the use of keyword volatile?? LG-Soft4
consider the following program sigment int n,sum=1; switch(n) { case 2:sum=sum+2; case 3:sum*=2; break; default:sum=0;} if n=2, what is the value of sum a.0 b.6 c.3 d.none TCS4
what is the difference between const char *p, char const *p, const char* const p Accenture4
There is a 100-story building and you are given two eggs. The eggs (and the building) have an interesting property that if you throw the egg from a floor number less than X, it will not break. And it will always brake if the floor number is equal or greater than X. Assuming that you can reuse the eggs which didn't broke; you got to find X in a minimal number of throws. Give an algorithm to find X in minimal number of throws.  2
Given an array of length N containing integers between 1 and N, determine if it contains any duplicates. SilverKey2
WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c file management?  6
 
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