some newbie questions of construction

From: bucher (csjinjian_at_163.net)
Date: 06/29/04


Date: Tue, 29 Jun 2004 21:06:03 +0800

Hi,
  I'm confused by one question. Here is the questions:

   char* pBuf = new char[100];
   what the destructor should be? "delete pBuf" or "delete [] pBuf"?

  I remember that if a is a class, after the constructor "new [100] a();",
the destrutor should be "delete [] a", but how about the primitive type?
  Thanks in advance.