Correct type for array indices
From: Sean Hamilton (sh_at_bel.bc.ca)
Date: 11/27/04
- Next message: Bjørn Augestad: "Re: Correct type for array indices"
- Previous message: Malcolm: "Re: "Interesting" C behaviours"
- Next in thread: Bjørn Augestad: "Re: Correct type for array indices"
- Reply: Bjørn Augestad: "Re: Correct type for array indices"
- Reply: Christian Bau: "Re: Correct type for array indices"
- Reply: Malcolm: "Re: Correct type for array indices"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 27 Nov 2004 06:44:50 GMT
Hello,
Suppose I have a pointer to some structures. What would be the correct
type to store the number of entries in that array, as well as for indexing
that array? size_t seems like an obvious choice, but off_t also jumps to
mind.
Thanks,
-- Sean Hamilton <sh@bel.bc.ca>
- Next message: Bjørn Augestad: "Re: Correct type for array indices"
- Previous message: Malcolm: "Re: "Interesting" C behaviours"
- Next in thread: Bjørn Augestad: "Re: Correct type for array indices"
- Reply: Bjørn Augestad: "Re: Correct type for array indices"
- Reply: Christian Bau: "Re: Correct type for array indices"
- Reply: Malcolm: "Re: Correct type for array indices"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|