#include <stdio.h> int main(int argc, char *argv[]) { int j ; for ( j=1; j< argc; j++ ) printf("%1d: %s\n", j, argv[j] ); return 0; }
Here is a run: