+ 2
what is diff. btween void main and int main
3 Respuestas
+ 1
int main returns int and void return null and doesnt need any return type but int does.
0
int main needs" return " at the end of function main, but void main doesn't
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