+ 2

what is diff. btween void main and int main

15th Aug 2016, 2:35 PM
sherin mathew
sherin  mathew - avatar
3 Respuestas
+ 1
int main returns int and void return null and doesnt need any return type but int does.
15th Aug 2016, 3:56 PM
Tarun kumar parashar
Tarun kumar parashar - avatar
0
int main needs" return " at the end of function main, but void main doesn't
15th Aug 2016, 3:41 PM
mostafa
mostafa - avatar
0
use of the int or what else return types must use of the return.. we cannot have any return we can used void void means null return.... but if you want the return the value put your value type befor the function name... its call return type
15th Aug 2016, 5:26 PM
Buvindu Anjana Fernando
Buvindu Anjana Fernando - avatar