0

What is void main

Void main

1st Jan 2018, 4:23 AM
Anu Varghese
Anu Varghese - avatar
2 Respostas
+ 12
void return type for main is loading bananas into a shotgun and expecting it to work. - Some shotguns may shoot fine but most won't. http://www.stroustrup.com/bs_faq2.html#void-main
1st Jan 2018, 5:14 AM
Hatsy Rei
Hatsy Rei - avatar
+ 9
main() is the default entry point of a program while void is used to declare that the program won't be returning any value.
1st Jan 2018, 4:41 AM
Harsh
Harsh - avatar