X

Printing out arguments

Guest Author

Rather unexciting application for printing out the arguments passed into an application:

#include <stdio.h>
void main(int argc, char** argv)
{
for (int i=0; i<argc; i++)
{
printf(" %i = \"%s\"\n",i, argv[i]);
}
}

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.