Results 1 to 2 of 2
  1. #1
    kkid is offline Senior Member
    Join Date
    Jul 2012
    Posts
    226
    Rep Power
    2

    Default Does an array start ARRAY[0] or ARRAY[1]?

    If an array (A) was 5 long, would it be:

    A[1], A[2], A[3], A[4], A[5]

    or

    A[0], A[1], A[2], A[3], A[4]

    ?

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,685
    Rep Power
    8

    Default Re: Does an array start ARRAY[0] or ARRAY[1]?

    What happened when you tried each?
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Replies: 15
    Last Post: 05-14-2012, 12:42 PM
  2. Replies: 0
    Last Post: 05-12-2011, 07:04 PM
  3. to start with textfield to array....pls
    By decgaid06 in forum Java 2D
    Replies: 1
    Last Post: 03-27-2011, 12:49 AM
  4. Replies: 2
    Last Post: 09-06-2010, 01:03 AM
  5. Replies: 1
    Last Post: 03-31-2009, 06:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •