+ 2

Please explain clearly

when we are supposed to use "int main()" and when we are supposed to use "void main()"

24th Sep 2017, 3:24 AM
SAKSHI
SAKSHI - avatar
3 Answers
+ 20
"int main()" is the standard. Some compilers don't accept "void main()", thus why "int main()" is preferred.
24th Sep 2017, 3:38 AM
Tamra
Tamra - avatar
24th Sep 2017, 4:47 AM
Hatsy Rei
Hatsy Rei - avatar