+ 1

Is it any rule that main should always be int main...can we use float main also??

20th Jun 2017, 8:31 AM
radhalakshmi arjun
2 Respostas
+ 7
There has been a couple of similar questions in the past few days. The answer is yes, main() must return int. It is part of the syntax.
20th Jun 2017, 10:19 AM
Hatsy Rei
Hatsy Rei - avatar