File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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