Linked Questions

Popular Questions

I'm not being able to run my C program from the Git-bash terminal on my Windows machine. My code is compiling fine. The problem is just while running it. The command I'm using to compile my code is: gcc problem1.c

And the command that I'm giving for running the executable is ./a.exe

The error that I'm getting is this: bash: ./a.exe: Permission Denied

This problem has only recently cropped up. I've been compiling and running programs with git-bash for a long time and never faced this problem. A few days back, I enabled the Windows Subsystem for Linux on my Machine and installed the Ubuntu distribution. I don't know if that has something to do with this. I'm facing the same problem with CMD as well. CMD throws an access denied message when I try to run the code. Thanks in advance.

Related Questions