differences between initializing int in c++ with double

Viewed 987

what are the differences between this kind of initializing in c++;

int a = 0;
int a{};
int ();

why this code int a{3.14} get me error but this one int a = 3.14 or this one int a(3.14) do not

4 Answers
Related