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

please draw the flowchart of the whole process

Recommended Answers

Have you even bother to search on google?:
Link 1
Link 2
Link 3

Jump to Post

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 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.