• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
Menu
+ 2

int a(2)

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

c++
24th Jan 2017, 8:16 AM
Amr Gamal
Amr Gamal - avatar
2 odpowiedzi
+ 6
This is a very good question! http://stackoverflow.com/questions/4470553/initialization-parenthesis-vs-equals-sign
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

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
Is anyone else experiencing this Sololearn issue?
0 Votes
Best language?
0 Votes
solo learn program issue - iPhone?
1 Votes
How do I keep myself motivated in coding
0 Votes
you con help mi
1 Votes
Bro can you fix yt error?
0 Votes
Learn - multiple choice course questions display in one box making it impossible to continue
1 Votes
Anyone have song names? Comment your favorites here for a project im working on
0 Votes
Sql practice
0 Votes
I want to know how to make an Payment App like what I need to learn I need some guidance
0 Votes