0

We can't use void main() in c++ right? We should only use int main() right?

C++

1st Aug 2019, 5:16 PM
Merlyn J
2 Answers
+ 3
ist not like that See the motive of using int main() When you are playing with intergerial values Like additiona So it requires ( return 0;. ) And void main () is you are using for no retuning any value through function
1st Aug 2019, 5:30 PM
Yash🏁🔘
Yash🏁🔘 - avatar