Why C++ gives two ways to initialize variable?
First way is C-type initialization
where we assign value to the variable at the place where we define it.
int a = 0;
Another way, constructor initialization
which is done by enclosing the initial value between parentheses ().
int a(0);
My question is what was reason that the creators of C++ were forced to introduce new way to initialize variable. Although C-style initialization was doing the job.