answersLogoWhite

0

#include<stdio.h>

#include<conio.h>

#include<windows.h>

int main()

{

CreateDirectory("C:\\Users\\Tareq\\Desktop\\ComputerScience",NULL); //create folder "ComputerScience" in desktop

CreateDirectory("C:\\Users\\Tareq\\Desktop\\ComputerScience\\SF",NULL);//create another folder "SF" inside ComputerScience folder

printf("file created");

getch();

}

User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

RossRoss
Every question is just a happy little opportunity.
Chat with Ross
FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran
BeauBeau
You're doing better than you think!
Chat with Beau

Add your answer:

Earn +20 pts
Q: How can you create sub folder in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp