main() and int main() in c++ | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 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 Respuesta
+ 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