38

What is the name of the header file that contains the declaration of the malloc() function in C and C++?

S.S. Anne
  • 15,171
  • 8
  • 38
  • 76
Peter
  • 663
  • 1
  • 7
  • 15

1 Answers1

56

It's in stdlib.h (C) and cstdlib (C++).

In general, for such questions, just try to look on google: "c++ function". Most often the first hit will point to cplusplus.com for me containing a complete reference to the standard stuff.

Mario
  • 35,726
  • 5
  • 62
  • 78