Sujet : Re: Loops (was Re: do { quit; } else { })
De : jameskuyper (at) *nospam* alumni.caltech.edu (James Kuyper)
Groupes : comp.lang.cDate : 16. Apr 2025, 15:47:56
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vtofus$2bntf$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
User-Agent : Mozilla Thunderbird
bart <
bc@freeuk.com> writes:
On 16/04/2025 06:35, Janis Papanagnou wrote:
>
So here, 0% of such loops have a step other than 1. THAT's what I mean
by 'unusual'.
The files easily accessible to me contain 13965 for statements, of which
596 used a step other than 1.
890 are for iterating over linked lists, such as:
for(f = *opt; f; f = f->next)
117 are for iterating over bits in a bit mask, such as:
for(nLeft=0; !(bitmask & ((u64)1 << nLeft))