Can someone explain to me what is a bound checking, in C/C++ ?
Thanks.
Can someone explain to me what is a bound checking, in C/C++ ?
Thanks.
"I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe
http://www.Bloodware.net - Developing free software for the community.
It's making sure that you don't write before index 0 or after index n-1 in an array.
The information given in this message is known to work on FreeBSD 4.8 STABLE.
*The above statement is false if I was too lazy to test it.*
Please take note that I am not a technical writer, nor do I care to become one.
If someone finds a mistake, gleaming error or typo, do me a favor...bite me.
Don't assume that I'm ever entirely serious or entirely joking.
ohhh...
thanks alot
"I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe
http://www.Bloodware.net - Developing free software for the community.
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
"You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter
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.