Actually, the .NET runtime specification says that there is no integer
overflow, unless you declare it as "checked". But i'm not so sure for buffer
overflow. I'm almost sure there are array bound checkings in .NET languages
by default. I don't really know what about C++ CLR compiled.

On Fri, Jul 24, 2009 at 8:22 PM, Henrique 'HoloCoCos' Cintra <
[email protected]> wrote:

> Sorry, I translated wrongly, it's buffer overflow...
>
> By default at VS Express 2003 the compiler doesn't check for buffer
> overflow.  If you create a code the sums an int value many times, you won't
> have an error after the value reaches more than the max value of an int, the
> value will be "converted" to a negative one and continue summing... of
> course the result won't be the right one but you won't be informed.
>
> If you turn on this option, a "buffer overflow" error will occur and you'll
> have to change the int type to long type, other type or change your code.
>
> Last year my small tests passed but the long one (when you can submit just
> once) didn't, because of this...
>
> On Fri, Jul 24, 2009 at 1:18 PM, Himanshu Sachdeva 
> <[email protected]>wrote:
>
>> Henrique ,what is a buffer overrun? and howz it helpful?
>>
>> Cheers!
>> Himanshu Sachdeva
>>
>
> --
> holoco...@tnt
> http://holococos.sjdr.com.br
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-codejam" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-code?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to