Interview Questions

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

C Interview Questions and Answers


(Continued from previous question...)

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 command(s).

(Continued on next question...)

Other Interview Questions