getting "access is denied" in command prompt when trying to run c file

Microsoft Windows [Version 10.0.16299.125] (c) 2017 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>cd C:\Users\Karl\Desktop\Semester2 CS\CIS2107\Cwarmup

C:\Users\Karl\Desktop\Semester2 CS\CIS2107\Cwarmup>dir Volume in drive C is OS Volume Serial Number is D052-78FD

Directory of C:\Users\Karl\Desktop\Semester2 CS\CIS2107\Cwarmup

12/30/2017 09:27 PM <DIR> . 12/30/2017 09:27 PM <DIR> .. 12/30/2017 04:47 PM 258 helloworld.c 12/30/2017 05:01 PM 40,766 helloworld.exe 12/30/2017 04:56 PM 449 info.txt 12/30/2017 05:10 PM 307 main.c 12/30/2017 08:05 PM 351 variable.c 12/30/2017 08:24 PM 80 what.c 6 File(s) 42,211 bytes 2 Dir(s) 383,876,288,512 bytes free

C:\Users\Karl\Desktop\Semester2 CS\CIS2107\Cwarmup>helloworld.exe Hello, world! C:\Users\Karl\Desktop\Semester2 CS\CIS2107\Cwarmup>dir Volume in drive C is OS Volume Serial Number is D052-78FD

Directory of C:\Users\Karl\Desktop\Semester2 CS\CIS2107\Cwarmup

12/30/2017 09:27 PM <DIR> . 12/30/2017 09:27 PM <DIR> .. 12/30/2017 04:47 PM 258 helloworld.c 12/30/2017 05:01 PM 40,766 helloworld.exe 12/30/2017 04:56 PM 449 info.txt 12/30/2017 05:10 PM 307 main.c 12/30/2017 08:05 PM 351 variable.c 12/30/2017 08:24 PM 80 what.c 6 File(s) 42,211 bytes 2 Dir(s) 383,876,120,576 bytes free

C:\Users\Karl\Desktop\Semester2 CS\CIS2107\Cwarmup>gcc variable.c -o variable.exe

C:\Users\Karl\Desktop\Semester2 CS\CIS2107\Cwarmup>dir Volume in drive C is OS Volume Serial Number is D052-78FD

Directory of C:\Users\Karl\Desktop\Semester2 CS\CIS2107\Cwarmup

12/30/2017 09:29 PM <DIR> . 12/30/2017 09:29 PM <DIR> .. 12/30/2017 04:47 PM 258 helloworld.c 12/30/2017 05:01 PM 40,766 helloworld.exe 12/30/2017 04:56 PM 449 info.txt 12/30/2017 05:10 PM 307 main.c 12/30/2017 08:05 PM 351 variable.c 12/30/2017 09:29 PM 40,766 variable.exe 12/30/2017 08:24 PM 80 what.c 7 File(s) 82,977 bytes 2 Dir(s) 383,876,071,424 bytes free

C:\Users\Karl\Desktop\Semester2 CS\CIS2107\Cwarmup>variable.exe Access is denied.

C:\Users\Karl\Desktop\Semester2 CS\CIS2107\Cwarmup>

C:\Users\Karl\Desktop\Semester2 CS\CIS2107\Cwarmup>

/r/learnprogramming Thread Parent