Question d’entretien chez MathWorks

What is the difference between malloc and new?

Réponse à la question d'entretien

Utilisateur anonyme

4 nov. 2011

malloc returns a void pointer while new returns a pointer to the type of object you allocated space for