Are there any other arguments that main() can accept?
问题 I recently came across the following in my searches regarding environment variables in C: int main (int argc, char *argv[], *char *envp[]) I have searched around and can't find anything conclusive regarding my question. What are all of the available arguments that main() can accept? 回答1: The C99 and C11 draft standards allow for implementation defined set of parameters to main , these parameters are going to be specific to those systems( non-portable ). From section 5.1.2.2.1 : [...]or in