Re: OT: Why is C so popular?
From: Pigeon (jah.pigeon_at_ukonline.co.uk)
Date: 08/30/03
- Previous message: Alvin Oga: "email server"
- In reply to: Steve Lamb: "Re: OT: Why is C so popular?"
- Next in thread: Ron Johnson: "Re: OT: Why is C so popular?"
- Reply: Ron Johnson: "Re: OT: Why is C so popular?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 30 Aug 2003 02:58:37 +0100 To: debian-user@lists.debian.org
On Fri, Aug 29, 2003 at 04:44:33PM -0700, Steve Lamb wrote:
> On Fri, 29 Aug 2003 20:01:23 +0100
> Pigeon <jah.pigeon@ukonline.co.uk> wrote:
> > Oh, that's interesting - the for loop's running from 0 to 9, so it
> > prints "81", not "100".
>
> Yes, range(x) does 0 to x-1. This is for stuff like this (and this is a
> bad example)...
>
> for x in range(10):
> baz[x] = foo[x] + bar[x]
...so array indices work like C, then. OK!
-- Pigeon Be kind to pigeons Get my GPG key here: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x21C61F7F
-- To UNSUBSCRIBE, email to debian-user-request@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- application/pgp-signature attachment: stored
- Previous message: Alvin Oga: "email server"
- In reply to: Steve Lamb: "Re: OT: Why is C so popular?"
- Next in thread: Ron Johnson: "Re: OT: Why is C so popular?"
- Reply: Ron Johnson: "Re: OT: Why is C so popular?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|