How to fix this error in terminal while writing hello world code in VS Code on C?

46 views Asked by At
PS C:\Users\Rohit Pradhan\C Tutorials> gcc main.c

gcc.exe: error: main.c: No such file or directory

gcc.exe: fatal error: no input files

compilation terminated.

Was trying to get this

Getting this error after typing "gcc main.c", trying to run a.exe in my directory

0

There are 0 answers