...no. Once you return, your function is done. return() does just that - it returns the execution flow back to the calling function.
You do not fclose() at all. That's the calling function's job.
Printable View
OK this is strange, you are using all C in your project.
Are you supposed to do that? This is C++, so...
You are reading with scanf in a very unsafe way, but you could easily fix that by using the "correct" C++ model instead.
Or are you going to keep on using C? I'm wondering here...