Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by targetsmart (Curate)
on Jun 24, 2009 at 06:14 UTC ( [id://774261]=note: print w/replies, xml ) Need Help??


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

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.
  • Comment on Re^4: why the array index has to start at 0??

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2025-12-09 06:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (88 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.