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

Why do I use void main in place of int main

Why do I use void main in place of int main

voiddowhyiuse
11th Jan 2018, 5:15 AM
Shalin Suthar
Shalin Suthar - avatar
1 Odpowiedź
+ 4
For C++, you never do. The standard states int main so the programmer codes int main. https://www.sololearn.com/Discuss/11014/what-if-we-used-void-main-instead-of-int-main https://www.sololearn.com/Discuss/973021/what-is-the-different-between-void-man-int-main-function https://www.sololearn.com/Discuss/575950/can-we-use-void-main-instead-of-int-main
11th Jan 2018, 5:26 AM
John Wells
John Wells - 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
Error in python
5 Votes
Why Sololearn Removed Our Saved Private Project (Codes), I Can't Find This Option.
2 Votes
Where have they gone
2 Votes
API
0 Votes
General Inquiry
0 Votes
Which is easier to learn first between python and JS?
0 Votes
Activity Section in Profile has Gone
1 Votes
how to be good at coding
1 Votes
Need help?
1 Votes
Can I download libraries on sololearn
1 Votes