GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 21-May-2009, 09:53
khushal_kkk's Avatar
khushal_kkk khushal_kkk is offline
Awaiting Email Confirmation
 
Join Date: Mar 2008
Posts: 50
khushal_kkk is an unknown quantity at this point

Reservation Of Space In Arrays .. ?


i have learnt so far that the values in an array are stored in successive memory locations that's all right but i wanna know why is it stored in successive memory locations i need an example explaining this concept .. REGARDS
  #2  
Old 21-May-2009, 12:44
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 5,218
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold

Re: Reservation Of Space In Arrays .. ?


Quote:
Originally Posted by khushal_kkk
...why is it stored in successive memory locations...
In C and C++, elements of an array are stored in successive memory locations because the language standards require that to happen. There are lots of reasons why the authors of the languages made that a requirement.

For some explanation and examples you can look here: http://www.cplusplus.com/doc/tutorial/arrays/

Regards,

Daves
  #3  
Old 25-May-2009, 00:30
Peter_APIIT Peter_APIIT is offline
Regular Member
 
Join Date: May 2007
Location: Malaysia
Posts: 545
Peter_APIIT can only hope to improve

Re: Reservation Of Space In Arrays .. ?


Iteration in array make easier.
 
 

Recent GIDBlogProblems with the Navy (Chiefs) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need-Space.co.uk special offer including free months of service - £1 and up matzah Web Hosting Advertisements & Offers 0 24-Oct-2007 12:16
Need Space? Need-Space.co.uk is there you get web hosting and reseller hosting matzah Web Hosting Advertisements & Offers 0 13-Dec-2006 23:39
Need-Space.co.uk | Reseller and Shared Hosting Plans! nsuk Web Hosting Advertisements & Offers 0 04-Jul-2006 01:32
Need-Space | Reseller and Shared Hosting Plans! nsuk Web Hosting Advertisements & Offers 0 23-Jun-2006 11:07

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 16:22.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.