[EMAIL PROTECTED] wrote:
> On 9/9/08, Brett McCoy <[EMAIL PROTECTED]> wrote:
>> On Tue, Sep 9, 2008 at 2:36 PM, Saurabh Jain <[EMAIL PROTECTED]>
>> wrote:
>>
>>> Also  nump is uninitialized, which writes unknown data in numr and numw.
>> Using an uninitialized int won't cause a segmentation fault, though.
> 
> No?
> 
> float foo[42], bar;
> foo[bar] = 3.14;
> 
> Not, in essence, too different from what the OP was doing.

A lot more people would write code a lot more carefully if an 
application crash meant the hard drive would be wiped as part of 
"undefined behavior".

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to