Need 286 "C" benchmark

Chuck Simmons chuck at dartvax.UUCP
Sun May 26 16:16:36 AEST 1985


> 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?



More information about the Comp.lang.c mailing list