In this whodunit copy.c the input filenames and output filenames are entered as command line arguments but I couldn't understand that How does inputting the file name will point to the file.
// remember filenames
char *infile = argv[1];
char *outfile = argv[2];
According to this the argv[1] and argv[2] which will be the filenames , will be saved as a character array but they are just the filenames not the pathnames so the char * pointers will point to the memory address where the filenames are stored in the memory.
Please enlighten it's kind of very confusing for me to understand where the pointers will point to ?