What is the difference between:
type name (value) //notation and
type name = value // ?
I am currently studying from Bjarne Stroustrup's "Programming: Principles and Practice using C++", and in the fourth chapter he introduces conversion notations.
I have found however that writing double x (5);
and double x = 5;
outputs the same result in any occasion. What is the difference between these two? In practice, on the first example, I'm making a conversion, while on the second one I'm making an initialization, but the result is the same.
I have experimented with different values for the variables I'm initializing / converting, but the result was the same.