c:/mingw/bin/…/lib/gcc/mingw32/6.3.0/…/…/…/…/mingw32/bin/ld.exe: cannot open output file C:\Users\dhruv\C-programs/hello.exe: Permission denied
collect2.exe: error: ld returned 1 exit status
Getting this error.
Background - While executing a regular code with no user interaction, the code works with excellence. However, when I’m trying to use either scanf function or switch case, I get this error. Is there a way to solve this?
I’ve given all permissions to both files yet still not working.
Please help me out.
Thank you.