how the compiler searchs for a file when we write fopen("filename","r");
please draw the flowchart of the whole process
how the compiler searchs for a file when we write fopen("filename","r");
please draw the flowchart of the whole process
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.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.