+ 2
int a(2)
What does it mean? What is the difference between it and int a=2
2 Answers
+ 6
This is a very good question!
http://stackoverflow.com/questions/4470553/initialization-parenthesis-vs-equals-sign
+ 1
int a(2);
cout << a;
this still outputs 2, so there may not be a difference