Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
As you know arrays startsstart with index 00.
it means name of outfileoutfile should be char *outfile = argv[3];char *outfile = argv[3];, not argv[4]argv[4].
As you know arrays starts with index 0.
it means name of outfile should be char *outfile = argv[3]; , not argv[4].
As you know arrays start with index 0.
it means name of outfile should be char *outfile = argv[3];, not argv[4].