main() and int main() in c++ | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Resposta
+ 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