2

Possible Duplicate:
Do the parentheses after the type name make a difference with new?

Hi!

What is the difference between the follow statements?

AnyClass *i1 = new AnyClass();
AnyClass *i2 = new AnyClass;

Both statements compile and run equally.

Is there no difference?

Community
  • 1
  • 1
Yakov
  • 318
  • 5
  • 15
  • 1
    Exact duplicate of [Do the parentheses after the type name make a difference with new?](http://stackoverflow.com/questions/620137/do-the-parentheses-after-the-type-name-make-a-difference-with-new). – James McNellis Jun 23 '10 at 15:21

0 Answers0