C Interview Questions and Answers


How do I create a directory? How do I remove a directory (and its contents)?

If your operating system supports these services, they are likely to be provided
in C via functions named mkdir and rmdir. Removing a directory's contents as
well will require listing them and calling remove . If you don't have these
C functions available, try system along with your operating system's delete

Posted by:Richards