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 0 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 ?    0 Yes 1 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 ?    0 Yes 1 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 ?    0 Yes 0 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 ?    1 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 ?    0 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 ?    0 Yes 0 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 ?    0 Yes 0 No
Pradeep Singh Bahdari
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
Convert the following expression to postfix and prefix (A+B) * (D-C)  1
WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c file management?  3
What is the value of y in the following code? x=7;y=0; if(x=6) y=7; else y=1; TCS10
Sir i want e-notes of C languge of BAlaguruswami book i.e scanned or pdf file of balaguruswamy book on c language.PLEASE SEND ME on my mail id ajit_kolhe@rediff.com  2
parkside's triangle.. create a program like this.. enter the size: 6 enter the seed: 1 output: 1 23 456 7891 23456 789123 sample2: enter the size: 5 enter the seed: 3 output: 3 45 678 9123 45678 parkside should not exceed 10 while its seed should only be not more than 9..  3
1 232 34543 4567654 can anyone tell me how to slove this c question  3
#define min((a),(b)) ((a)<(b))?(a):(b) main() { int i=0,a[20],*ptr; ptr=a; while(min(ptr++,&a[9])<&a[8]) i=i+1; printf("i=%d\n",i);}  2
what will be the result of the following program ? char *gxxx() { static char xxx[1024]; return xxx; } main() { char *g="string"; strcpy(gxxx(),g); g = gxxx(); strcpy(g,"oldstring"); printf("The string is : %s",gxxx()); } a) The string is : string b) The string is :Oldstring c) Run time error/Core dump d) Syntax error during compilation e) None of these IBM2
write a fuction for accepting and replacing lowercase letter to'Z' with out using inline function. Temenos3
palindrome for strings and numbers----Can anybody do the prog? TCS5
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
Write a program to interchange two variables without using the third variable? Accenture9
what is a function pointer and how all to declare ,define and implement it ??? Honeywell3
what are the static variables HCL7
There are 3 baskets of fruits with worng lables,one basket has apple,another basket has orange,another has combination of apple and orange,what is the least way of interchange the lables. Google8
What's the best way to declare and define global variables?  2
How to add two numbers without using arithmetic operators? Sapient7
15.what is the disadvantage of using macros? 16.what is the self-referential structure? 17.can a union be self-referenced? 18.What is a pointer? 19.What is the Lvalue and Rvalue? 20.what is the difference between these initializations? 21.Char a[]=”string”; 22.Char *p=”literal”; 23.Does *p++ increment p, or what it points to?  2
What are .h files and what should I put in them?  3
WAP to accept basic salary of an employee? Calculate it HRA=25%,DA=30%,PF=30%&net salary display all contents?  3
 
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