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 is the use of using linked list and array?
 Question Submitted By :: Kunal
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the use of using linked list and array?
Answer
# 1
because they decrease the time complexity of the program we 
have to do.
 
Is This Answer Correct ?    0 Yes 2 No
Kunal
 
  Re: what is the use of using linked list and array?
Answer
# 2
By using the linked list we can allocate definite memory
space  for variables.But in array cannot allocate definite
memory space.
 
Is This Answer Correct ?    3 Yes 2 No
Ananth
 
 
 
  Re: what is the use of using linked list and array?
Answer
# 3
In Linked list we can insert or delete the elements at any 
position,which is not possible in arrays and arrays are of 
fixed size,but linked lists are not have a definite length. 
we can dynamically allocate the size of linked list with 
out wastage of memory...
 
Is This Answer Correct ?    1 Yes 2 No
Manju
 
  Re: what is the use of using linked list and array?
Answer
# 4
we can decrease our time complexcity and allocate 
[particular memory place for give variable,this is not 
possible in the arrays.this is my ans.......
 
Is This Answer Correct ?    1 Yes 1 No
M.madhu Sudhan
 
  Re: what is the use of using linked list and array?
Answer
# 5
Linked list has an overhead cost of maintaining reference
pointers it uses. They too consume lot of memory. And this
cost is more in case of doubly linked lists. 

Linked lists always provide sequential access. While arrays
give random access.
 
Is This Answer Correct ?    4 Yes 0 No
Rani
 
  Re: what is the use of using linked list and array?
Answer
# 6
Use of array: All the elements are lumped together in one 
block of memory. Individual elements can be accessed thru 
Array index. Random access & Dynamic allocation are 
possible.

Use of Linked list: Linked list allocates space for each 
element separately in its own block of memory called 
a "linked list element" or "node". It gets the overall 
structure by using pointers to connect all its nodes 
together like the links in a chain. Here the elements of 
list can be accessed thru memory address (Since the pointer 
stores a reference to another variable)which improves the 
efficiency. Size of the list can also be modified (ie) we 
can insert/delete elements of the list.
 
Is This Answer Correct ?    1 Yes 0 No
Vaishnavi Varadarajan
 
  Re: what is the use of using linked list and array?
Answer
# 7
Linked List and array both are used continuous allocation of
memory. When we want to assign too many same type of data
sequentially into memory, at that time we use the Linked
list and array because taking separate variable for each
data is tedious and time consuming so we use the Linked list
and arrays.
 
Is This Answer Correct ?    1 Yes 2 No
Harsh Srivastava
 
  Re: what is the use of using linked list and array?
Answer
# 8
it is not possible to declare variables for each and every
data items in the memory it takes too much time and
increases the size of code and it will be cumbersome to use
these variables
 
Is This Answer Correct ?    2 Yes 1 No
Pradeep Singh Bahdari
 
  Re: what is the use of using linked list and array?
Answer
# 9
No
 
Is This Answer Correct ?    0 Yes 1 No
Nalini
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
What is memmove? Oracle1
write a “Hello World” program in “c” without using a semicolon?  3
10. Study the code: void show() main() { show(); } void show (char *s) { printf("%sn",s); } What will happen if it is compiled & run on an ANSI C Compiler? A)It will compile & nothing will be printed when it is executed B)it will compile but not link C)the compiler will generate an error D)the compiler will generate a warning Accenture4
what is the associativity of bitwise OR operator?  1
main is a predefined or user define function if user defined why? if predefined whay? TCS2
differentiate between const char *a; char *const a; and char const *a; HCL1
what is op? for(c=0;c=1000;c++) printf("%c",c); Trigent18
hi how to convert program from notepad to turboc editor can u please help me  1
i want the code for printing the output as follows 4 4 3 3 2 2 1 1 0 1 1 2 2 3 3 4 4  1
tell me the full form of c?  2
why i join syntel? Syntel12
Is reference used in C?  1
2. Counting in Lojban, an artificial language developed over the last fourty years, is easier than in most languages The numbers from zero to nine are: 0 no 1 pa 2 re 3 ci 4 vo 5 mk 6 xa 7 ze 8 bi 9 so Larger numbers are created by gluing the digit togather. For Examle 123 is pareci Write a program that reads in a lojban string(representing a no less than or equal to 1,000,000) and output it in numbers. Nagarro2
write a program to arrange the contents of a 1D array in ascending order  3
How we add our function in liabrary as liabrary function. Exp. we want use our int factorical(int); function as int pow(int,int); function working in math header file.  1
write a program that finds the factorial of a number using recursion?  1
write a program to find out number of on bits in a number? Huawei12
i want explaination about the program and its stack reprasetaion fibbo(int n) { if(n==1 or n==0) return n; else return fibbo(n-1)+fibbo(n-2); } main() { fibbo(6); }  2
x=2,y=6,z=6 x=y==z; printf(%d",x) HCL8
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 IBM3
 
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