GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Concepts  >  Data Structures
Go To First  |  Previous Question  |  Next Question 
 Data Structures  |  Question 28 of 202    Print  
Elements of an array are stored _______ in memory.
Skill/Topic: Array
A) Periodical
B) Sequentially
C) Parallely
D) None of the above
Explanation: Elements of an array are stored sequentially in memory. For example,First, create an array called letters and assign characters to it, as shown here: char letters[3];letters[0] = 'C';letters[1] = 'B';letters[2] = 'A';In this, each letter appears one after the other in memory. This is because these values are assigned to elements of an array, and each array element is placed sequentially in memory



  
Total Answers and Comments: 3 Last Update: July 28, 2009   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
January 19, 2006 04:48:22   #1  
samiksc Member Since: October 2005   Contribution: 233    

RE: Elements of an array are stored _______ in memory ...
not necessarily in consecutive memory. For a large array compiler may choose different locations for 2 or more parts of an array. However the compiler will see to it that you get appropriate element by using index and it takes you to appropriate address when you use pointer arithmetic. But you cannot guarantee that the entire array is stored in consecutive locations.
 
Is this answer useful? Yes | No
February 21, 2006 01:55:54   #2  
bahwesh        

RE: Elements of an array are stored _______ in memory ...

basically elements are stored in contineous memory lacations

but as per need we can also store them in chunks of memory. by making use of link list. various other techniques can also be used


 
Is this answer useful? Yes | No
July 28, 2009 01:26:37   #3  
Supriya Agrawal Member Since: July 2009   Contribution: 1    

RE: Elements of an array are stored _______ in memory.
Sequentially
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape