[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: allocate 2d pointer. is ths a bug ?

From: h
Subject: Re: allocate 2d pointer. is ths a bug ?
Date: Thu, 10 Aug 2006 16:31:40 +0900

Thanks Mehturt.

but, it works through g++ on Cygwin and GNU/Linux machine without MS-VC++ 
6.0 on win32 machine.
i know i've attached code are has a problem.

okay, i wanna know exactly attached code are why looks working good in g++ 
that's it.

godmode2k at

<> wrote in message">
>> 5    char** str;
>> 6
>> 7    str[0] = new char[5];
>> 8    str[1] = new char[5];
>> 9
> I believe the result is "undefined behavior", so the program might do
> anything it wants..

reply via email to

[Prev in Thread] Current Thread [Next in Thread]