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
  • 9,653
  • 5
  • 43
  • 62
mans
  • 15,766
  • 39
  • 153
  • 296

0 Answers0