Cours
Se connecterCommencer à apprendre l'IA
Cours
Se connecterCommencer à apprendre l'IA
+ 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 Réponse
+ 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

Vous avez souvent des questions comme celle-ci ?

Apprenez de manière plus efficace, gratuitement :

  • Introduction à Python

    7.1M apprenants

  • Introduction à Java

    4.7M apprenants

  • Introduction à C

    1.5M apprenants

  • Introduction à HTML

    7.5M apprenants

Voir tous les cours
Aujourd'hui en vedette
Need suggestions
0 Votes
Hello can anyone help me to learn gdscript
0 Votes
What coding language should i use to make a custom coding language?
0 Votes
Best code for creating games?
0 Votes
Need suggestions to learn AI and ML
1 Votes
progaming
1 Votes
Java full stack
0 Votes
Anyone Learning Godot?
1 Votes
Duration of heart refilling
0 Votes
Which is more important CSS vs HTML vs JS?
1 Votes