how the compiler searchs for a file when we write fopen("filename","r");

please draw the flowchart of the whole process

Recommended Answers

All 2 Replies

how the compiler searchs for a file when we write fopen("filename","r");

It doesn't search, you give it a specific file name. As far as relative paths, that's fairly standard behavior in that the system (not the compiler) will attempt to open the specified file in the current working directory.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.