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
  • 391,730
  • 64
  • 469
  • 606
perseus
  • 39
  • 3

0 Answers0