main() and int main() in c++ | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

main() and int main() in c++

what is the difference b/w int main() { } and main() { }

30th May 2018, 4:49 PM
Astika Nehra
1 Antwort
+ 1
main() shouldn't compile. It requires a data type before it.
31st May 2018, 12:15 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar