Can someone explain to me what is a bound checking, in C/C++ ?
Thanks.
Printable View
Can someone explain to me what is a bound checking, in C/C++ ?
Thanks.
It's making sure that you don't write before index 0 or after index n-1 in an array. :)
ohhh...
thanks alot
if you mean "BoundsChecker" by numega then it means much more than that. It notifies you of memory leaks, tells you about bad parameters to functions etc...
it's great
But C/C++ does not natively do bounds checking on arrays. It assumes that if the programmer is using arrays he/she is smart enough not to write beyond its bounds.
This allows compiled code to run much faster because the compiler can produce code that does not need error checking in it. The compiler basically does not have to babysit the programmer, unlike BASIC and some other languages that do native array bounds checking.