0

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?

drescherjm
  • 10,365
  • 5
  • 44
  • 64
mans
  • 17,104
  • 45
  • 172
  • 321

0 Answers0