• Kurse
  • Code Compiler
  • Diskutieren
  • Preise
  • Teams
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 Antwort
+ 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

Häufig solche Fragen?

Effizienter lernen, kostenlos:

  • Einführung in Python

    7.1M Lernende

  • Einführung in Java

    4.7M Lernende

  • Einführung in C

    1.5M Lernende

  • Einführung in HTML

    7.5M Lernende

Alle Kurse anzeigen
Heute heiß
Mobile number and similarity
1 Votes
Can I import any module in python in this app?
1 Votes
Loops and conditions
2 Votes
GitHub account connecting issue
3 Votes
Algorithm to create maze-like grid
2 Votes
photo upload issue in html code
0 Votes
Coding issue
2 Votes
Alguém Português por aqui?
0 Votes
Hardware of computer
3 Votes
Any coding competitions?
1 Votes