fork download
  1. #include <cstdlib>
  2.  
  3. int main()
  4. {
  5. int *a = (int *)malloc(sizeof (int));
  6. int *b = static_cast<int *>(malloc(sizeof (int)));
  7. int *c = reinterpret_cast<int *>(malloc(sizeof (int)));
  8. free(a);
  9. free(b);
  10. free(c);
  11. }
  12.  
Success #stdin #stdout 0s 3336KB
stdin
Standard input is empty
stdout
Standard output is empty