• 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
Fast coding (mobile)
1 Votes
..
1 Votes
Beginner_to_SoloLearn
2 Votes
How to learn C++ and how long does it take
1 Votes
Coding help
2 Votes
DSA doubt
1 Votes
Bridge pattern use case
0 Votes
Recover challenge history
0 Votes
Hofstadter a sequence code coach is not running
0 Votes
Data structure using C
0 Votes