Export (0) Print
Expand All
Expand Minimize

Compiler Warning (level 1) C4154

deletion of an array expression; conversion to pointer supplied

You cannot use delete on an array, so the compiler converts the array to a pointer.

Example

// C4154.cpp
// compile with: /W1 /LD
void func()
{
   int array[ 10 ];
   delete array;       // C4154
}
Show:
© 2014 Microsoft