I have following static declaration of memory:

void* array[5000];

How I can allocate the same memory using operator new in C++?

有帮助吗?

解决方案

void **array = new void*[5000];

其他提示

at above there is array of pointers here is just an array of Integer.

int array = new int [5000];

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top