This documentation is archived and is not being maintained.

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.


// C4154.cpp
// compile with: /W1 /LD
void func()
   int array[ 10 ];
   delete array;       // C4154