Original Post
While going through a source code written in C, I had came across a usage of a malloc() function, which I had never encountered before. The general layout of it is as follows: int* variable1; variable1 = (int *) malloc(variable2 * variable3) My questions are: -What does this statement does? -How would I write this using the new keyword in C++? Thank you.