Shows how to work with arguments and formatted output in C
#include <stdio.h>
int main(int argc, const char* argv[])
{
printf("Started as '%s'", argv[0]);
if(argc>1)
{
printf("\nArguments:\n");
int i = 1;
while(i != argc)
{
printf("\t%d - '%s'\n", i, argv[i]);
++i;
}
}
else printf(" without arguments\n");
return 0;
}