0
Is it necessary to start main function using int main??
7 Answers
+ 3
the return type can vary eg. int , void ... but yes the function name must remain main
+ 2
did your main function end with return 0;? you can't use return when using void.
+ 1
int main () is not necessary but main function is necessary....
0
but I have tried void main but output showing error
showing necessary to use int main
0
you are allowed only one to choose for a program. which one? depending on your program's nature
- 1
Yes