new — C++ operator. malloc — C function.
1int* p1 = new int(10);2delete p1;3 4int* p2 = (int*)malloc(sizeof(int));5free(p2);