Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: why the array index has to start at 0??

by bpoag (Monk)
on Jun 23, 2009 at 23:38 UTC ( [id://774201]=note: print w/replies, xml ) Need Help??


in reply to Re^2: why the array index has to start at 0??
in thread why the array index has to start at 0??

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Re^3: why the array index has to start at 0??

Replies are listed 'Best First'.
Re^4: why the array index has to start at 0??
by TGI (Parson) on Jun 24, 2009 at 18:45 UTC

    'How is babby formed' features the idiotic ramblings of semi-literate native English speakers. targetsmart has not shown himself to be an idiot.

    Why arrays start at index 0 rather than 1 is a good question. It shows that he is questioning the foundations of the language as he learns, and seeking to understand things at a fundamental level.

    Basic, "obvious" questions that are so fundamental as to be invisible to most are the type of questions that bring real understanding and advancement.

    It is sad to see such rudeness on this site. It is even worse to see racist and ad hominem attacks here.

    P.S. The accepted plural form of "index" is typically "indexes", but "indices" is also acceptable. Finding irony of your use of "indecies" is left as an exercise for the reader.


    TGI says moo

Re^4: why the array index has to start at 0??
by targetsmart (Curate) on Jun 24, 2009 at 06:14 UTC
    Please tell me who in India taught you how to code
    Nobody taught me, I did self learning from C .. Perl.

    who otherwise put the idea in your head that array indecies (or anything else programming-wise) should begin with 1
    It is purely my idea/thought
    BTW my idea is not to advocate anyone that start using the array index from 1, just wanted to know why it is that way.

    so I can punch them in the neck.
    you can't :)


    Vivek
    -- 'I' am not the body, 'I' am the 'soul', which has no beginning or no end, no attachment or no aversion, nothing to attain or lose.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://774201]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-18 02:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found