One Response

Page 1 of 1
  1. James
    James October 27, 2010 at 9:14 am | | Reply

    Ah.. ok now I get it

    {
    int Monkey[10];
    }
    //Monkey dies out of scope

    {
    int *monkey = new int[10];
    }
    //error, monkey must be deleted first
    //delete [] monkey;

    Right?

Leave a Reply