csci4061/notes/03-process-basics-code/print13.c

8 lines
234 B
C
Raw Permalink Normal View History

2018-01-29 23:28:37 +00:00
// Prints 1st and 3rd command line arguments without check they are
// there. May kersplode if insufficient args are provided.
#include <stdio.h>
int main(int argc, char *argv[]){
printf("%s\n",argv[1]);
printf("%s\n",argv[3]);
}