Syntax of new

If 'Test' is an ordinary class, is there any difference between:

Test test* = new Test;
and
Test test* = new Test();


No.
BTW Those should have the star before the variable name:
Test *test = new Test;
Last edited on
Well spotted, I missed that!
Topic archived. No new replies allowed.