sorry, but I'm really new to programming in general. I need to write a ANSI program to print out each command line argument on a separate line using a for-loop. also it need to print the name of the executable
so far I have
Code:
#include <stdio.h>
int main(int argc, char **argv)
{
int i;
printf("")
for(i=0;i<argc;i++)
scanf("***%s***\n", argv[i]);
printf("***%s***\n", argv[i]);
return 0;
}