would these two lines of code end up with the same results?
int * ptr
ptr = (int*)malloc(20 * sizeof(int));
ptr = (int*)malloc(sizeof(int[20]));
Printable View
would these two lines of code end up with the same results?
int * ptr
ptr = (int*)malloc(20 * sizeof(int));
ptr = (int*)malloc(sizeof(int[20]));
Yes sir, they would.