What is the difference between:
p = (int*) malloc (5*sizeof(int));
vs
int *ptr = new int[5];
Is the top one C's version of memory allocation for a pointer to point to create a spot in memory for 5 integers? Then the bottom is C++'s version? Where do they appear in memory (if they do).