help-gplusplus
[Top][All Lists]
Advanced

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

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


From: address@hidden
Subject: Re: allocate 2d pointer. is ths a bug ?
Date: 9 Aug 2006 23:29:06 -0700
User-agent: G2/0.2

> 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]