Saturday 23 June 2012

What is the difference between C c; and C c();?

C c; // declares an instance of class C
C c(); // declares a parameterless function c that returns object of type C

No comments:

Post a Comment