Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Array Index within the C and C++ forums, part of the Software Development category; array size int a[4] why it starts from 0 only why we cant have 1 int a[1]=4, instead of zero can someone clarify it...
|
|||||||
|
|||
|
Re: Array Index
"Arrayname gives starting location where data was stored...."
ex.. int a[10]; a -> starting location which is nothing but a[0] => *(a+0) a+1 --> next location which is nothing but a[1] => *(a+1) So, index should starts with zero...... So that we can use from memory alloted for our array |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| B-tree index and Bitmap index | Lokesh M | Data Warehousing | 1 | 12-14-2008 06:01 AM |
| clustered index and nonclustered index | it_uday | Oracle | 5 | 08-19-2008 02:18 AM |
| convert one dimansional array to two dimansional array | Geek_Guest | C and C++ | 6 | 12-22-2007 04:17 AM |
| static array or dynamic array? | rpgubba | C and C++ | 6 | 12-22-2007 04:03 AM |
| index | rakhi1275 | Data Warehousing | 1 | 05-11-2007 06:54 AM |