Need 286 "C" benchmark

GEOFFREY KIM ee171ael at sdcc3.UUCP
Wed Jun 12 14:38:53 AEST 1985


In article <3146 at dartvax.UUCP>, chuck at dartvax.UUCP (Chuck Simmons) writes:
> > int a[50000];
> > 
> > main()
> > {
> >   int i;
> >   for (i=0; i<50000; i++) a[i+1] = a[i];
> > }
> > 
> > Dave Trissel    {seismo,ihnp4}!ut-sally!oakhill!davet
> 
> I know I can't program in C, but doesn't this program have a small
> bug in it?  When i is 49999, doesn't some random word of memory
> get trashed by the assignment statement?

Dear Chuck,,
Please post this article to net.jokes.

Larry G. Kim



More information about the Comp.lang.c mailing list