3

There are two ways to get the integer pointer

int *i = new int;
int *i = new int();

I know the later option will set the integer to 0. But how are they different to compiler. Is new an operator and new(), overload of operator?

unwind
  • 378,987
  • 63
  • 458
  • 590
perseus
  • 39
  • 3

0 Answers0