0
Where should we use int main() and where void main()
2 Respuestas
+ 1
The int or void is the function return type. If your function needs to return an integer, use int .
0
by default it's int by compiler if there is no return type specified like this
main(){
cout <<"hello";
return 0;
}