This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes A question with k&b Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "A question with k&b" Watch "A question with k&b" New topic
Author

A question with k&b

Arun Maalik
Ranch Hand

Joined: Oct 25, 2005
Posts: 216
Dear Rancher

I would liek to know that why the subscript of array start from 0 why not from 1 in many language like c,c++ or java.

well you may say that it has been rules but why it is rule.

please specify me i am so anthustic to know that why the array subscript start from 0 why not from 1.

with regard

Arun kumar maalik
Matt Russell
Ranch Hand

Joined: Aug 15, 2006
Posts: 165
Have a read of this Wikipedia article:
http://en.wikipedia.org/wiki/Zero-based_array#Indices_into_arrays.


Matt
Inquisition: open-source mock exam simulator for SCJP and SCWCD
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: A question with k&b
 
Similar Threads
[Interview Q] Why does array index begin with 0 instead of 1 ???
Backtracking recursion problems.
verry confusing array !!!!
About access to relevant variables from variable name
A Small Automation Needed