Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

difference between int main() and int main(void)

So the difference is, in C, int main() can be called with any number of 
arguments, but int main(void) can only be called without any argument.
Although it doesn't make any difference most of the times, using
“int main(void)” is a recommended practice in C.
 
PREVIOUS NEXT
Tagged: #difference #int #int
ADD COMMENT
Topic
Name
9+3 =