Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
Thread Tools Search this Thread Rate Thread
Old 06-Jul-2015, 04:41
findnerd findnerd is offline
Account Disabled
Join Date: Jun 2015
Posts: 6
findnerd has a little shameless behaviour in the past

Why the base index of array is zero in c language?

I was trying to work with array in c language and wondered that the base index of array does not start with other than zero like it doesn’t start with 1, 2, 3.. I just want to know the concept behind. “Why the base index of array is zero in c language” As I am a beginner in c programming language and I have more doubts about C issues, I will definitely post and look for more in this community forum. Hope I will get genuine replies to my programming query.
Old 07-Nov-2015, 04:44
Miss Figa Miss Figa is offline
New Member
Join Date: Oct 2015
Posts: 8
Miss Figa is on a distinguished road

Re: Why the base index of array is zero in c language?

Array indices should start at 0. This is not just an efficiency hack for ancient computers, or a reflection of the underlying memory model, or some other kind of historical accident—forget all of that. Zero-based indexing actually simplifies array-related math for the programmer, and simpler math leads to fewer bugs.

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
I am having problem with my tokenizer and parser? badloy1135 C Programming Language 3 11-Jul-2013 06:11
Arrays and Pointers swarna.bhatt C Programming Language 6 09-Apr-2013 01:23
base64 encoding questions Howard_L C Programming Language 4 24-Feb-2012 16:10
NetBeans - Inventory Program biglez123 Java Forum 1 23-Jan-2011 20:48
hashing help saiz66 C++ Forum 1 06-Jul-2004 06:16

Network Sites: GIDNetwork · GIDApp · GIDBlog · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 14:35.

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