I'm trying to determine if this creates an array of pointers, with the array size being "size"? Is this correct?

int size = x;
	int *ptr;
	ptr = new int [size];

I think the answer is yes.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.