Question: Write a program in C that accepts a file path from the user and prints each part of the file path, including the file extension,
Write a program in C that accepts a file path from the user and prints each part of the file path, including the file extension, on separate lines. You have to use strtok in this task. Input 1 C:\Users\Alice\Documents\test.c
Output 2 C: Users Alice Documents test c I
nput 2 U:\Books\book1.pdf
Output 2 U: Books book1 pdf
NOTE:DONT USE STRUCT MALLOC OR ALLOC USE STRINGS is it possibleto to do it without argc and argv?then please do So.
USE STRINGS CONCEPT
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
