|
MSDN delete[]
The required behavior is to accept a value of _Ptr that is null or that was returned by an earlier call to operator new[](size_t). The default behavior for a null value of _Ptr is to do nothing.
NULL일 경우 아무일도 않한다는것 같군요...
김상면 님이 쓰신 글 :
: p = NULL
:
: delete[] p;
: 다시 질문 드립니다.
: delete p는 아무 동작을 하지 않는데...
: delete[] p는 어떻게 되나요?
:
: 그럼
|