+ 2

int a(2)

What does it mean? What is the difference between it and int a=2

24th Jan 2017, 8:16 AM
Amr Gamal
Amr Gamal - avatar
2 Answers
24th Jan 2017, 11:11 AM
Hatsy Rei
Hatsy Rei - avatar
+ 1
int a(2); cout << a; this still outputs 2, so there may not be a difference
24th Jan 2017, 10:06 AM
Aaron
Aaron - avatar