+ 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 Answer
+ 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