Mail Archives: djgpp/1999/05/11/09:47:28
Ya'qub writes:
> Surely, the compiler *should* complain when you do such a thing as
> overrunning an array.
Not at all. C is a bare bones language with no built in error checking
at all. This is a big part of what makes it so powerful, because you
can treat memory in absolutely any way you like, but it also makes it
very easy to shoot yourself in the foot. A C compiler does exactly what
you tell it to do, so if you tell it wrong, it does something wrong.
Shawn Hargreaves.
- Raw text -