0
Is it necessary to write void main(void) ?
5 ответов
+ 10
No, as the default signature for main is :
int main(char argc, char** argv)
{
}
But, you may use :
int main()
{
}
Other versions are not allowed. Eg char main(), string main(), etc. in C++.
+ 7
no
+ 2
no need