I noted that I can create on object in two ways:
struct A
{
int a;
A(int i)
{
a=i;
}
}
A i(1);
A i{1};
What is the difference between them and which one to use?
I noted that I can create on object in two ways:
struct A
{
int a;
A(int i)
{
a=i;
}
}
A i(1);
A i{1};
What is the difference between them and which one to use?