int* p = new int[0]{}; // ...but this one is OK! This keeps consistency with C, where malloc(0) returns a (non-dereferenceable) pointer, and is.
確定! 回上一頁