1

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

Suppose we have a class named SomeClass. What's the difference of the following two ways using new?

SomeClass *p1 = new SomeClass;
SomeClass *p2 = new SomeClass();
Community
  • 1
  • 1
amazingjxq
  • 4,487
  • 7
  • 33
  • 35
  • http://stackoverflow.com/questions/620137/do-the-parentheses-after-the-type-name-make-a-difference-with-new. – prelic Mar 03 '12 at 02:52

0 Answers0