DEV Community

Discussion on: C++ type casting with example for C developers

Collapse
 
delta456 profile image
Swastik Baranwal

Use new instead of malloc and delete instead of free.

There is malloc and free in C++ i.e. std::malloc and std::free respectively.

Collapse
 
visheshpatel profile image
Vishal Chovatiya

Hey man!
Thanks for pointing it out.

Collapse
 
delta456 profile image
Swastik Baranwal

You should update the following as well.

Thread Thread
 
visheshpatel profile image
Vishal Chovatiya

done