From mboxrd@z Thu Jan 1 00:00:00 1970 From: rmswierczek@gmail.com (Robert Swierczek) Date: Wed, 7 Jun 2017 22:45:08 -0400 Subject: [TUHS] Array index history In-Reply-To: <016301d2dfc0$b098e250$11caa6f0$@ronnatalie.com> References: <23afd785-e260-75ca-5c46-77c62fbcf3cd@kilonet.net> <016301d2dfc0$b098e250$11caa6f0$@ronnatalie.com> Message-ID: > > Arrays can be efficiently implemented no matter where the index starts. > Keep in mind that C was/is primarily a language to write OS's and other system level software. Hardware such as memory addresses, page tables, disk sectors, etc. are all indexed from zero for very good reasons. I would shudder to contemplate an implementation of the Unix V6 kernel in a hypothetical C-with-one-based-arrays language.