index0123456789
here the unsigned chars are 8 bit unsigned...
here the index i it seems always definited from 0 to 255
and so it is always definited a[i], but one can make errors the same
in other places...
#include <stdio.h>
main(void)
{unsigned char a[258]="0123456789", i;
unsigned c;
for(c=i=0;c<500;++c,++i)
printf("%c",a[i]);
printf("\n");
return 0;
}
result
index0123456789
0123456789
here the unsigned chars are 8 bit unsigned...
here the index i it seems always definited from 0 to 255
and so it is always definited a[i], but one can make errors the same
in other places...
#include <stdio.h>
main(void)
{unsigned char a[258]="0123456789", i;
unsigned c;
for(c=i=0;c<500;++c,++i)
printf("%c",a[i]);
printf("\n");
return 0;
}
result
index0123456789
0123456789
| Sysop: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,075 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 100:19:59 |
| Calls: | 13,798 |
| Calls today: | 1 |
| Files: | 186,990 |
| D/L today: |
8,291 files (2,333M bytes) |
| Messages: | 2,438,700 |