Computer Chess Club Archives


Search

Terms

Messages

Subject: Corrected dxtension to question

Author: James Robertson

Date: 00:11:44 06/10/00

Go up one level in this thread


On June 10, 2000 at 03:10:55, James Robertson wrote:

>I just thought of something new: will everything be ok if I write:

These of course must all be ints....

>
>int *a = new int[256];
>int *b = a;
>a = new int[256];
>delete [] b;
>delete [] a;
>
>?
>
>Based on the previous answers I am guessing this will work. Is there any problem
>with it?
>
>James



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.