What is the standard notation for passing command line arguments in a C program?

  • int main(String[] args)
  • int main(int argc, char *argv[])
  • main(int argc, char *argv[])
  • void main(args)
The standard notation for passing command line arguments in a C program is 'int main(int argc, char *argv[])'. 'argc' holds the number of arguments, and 'argv' is an array of argument values.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *