int a(2) | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 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 Respuestas
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