#include <iostream>
using namespace std;
class C{
public: int a;
public: C (int i){a = i ; }
};
int main()
{
C c(3); // C c{3};
cout<<c.a;
return 0;
}
What is the difference between C c(3); and C c{3};? They seem to work the same as invoking the constructor.