Discussion: Bounds checking
Afficher un message
Vieux 05/02/2008, 13h44   #1
polas
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Bounds checking

Afternoon everyone.

I have a quick question about standard C. Generally speaking, in my
experience, whenever one accesses an array there is never any bounds
checking done (either statically during compilation or dynamically
during runtime.) However, I was wondering if whether there is anything
defined in the standard about this.

The reason for this is I have some code conforming to ANSI C99 and
wish to write to both arrays and a block of memory allocated by malloc
and was wondering if I can say that there will never be any runtime
checking done to ensure that the location I am writing to exists.

Cheers,
Nick
  Réponse avec citation
 
Page generated in 0,05874 seconds with 9 queries