+ 2

hey we can use void main() in place of int main() right? what's the difference? #needhelp

2nd Jul 2016, 2:48 PM
Bhavin Bopanna
Bhavin Bopanna - avatar
3 odpowiedzi
+ 1
int main always return value but void main do not return any value.
2nd Jul 2016, 3:00 PM
DEATH WALKER
DEATH WALKER - avatar
0
void main doesn't returns a value but int main return a value that's the different
2nd Jul 2016, 4:01 PM
evan naveen
evan naveen - avatar
0
void means does not return any values and int means it returns a int value
2nd Jul 2016, 9:46 PM
Âshvin Solanki
Âshvin Solanki - avatar