2. The attempt at a solution: I am completely new to programming.
I am learning C at present.
In my college, we use linux. Since my pc has windows installed so I am using cygwin terminal to use linux commands from windows.
I am currently using visual studio.
I tried to write the first program hello world.
C is a compiled language. You cannot run the source code (file with the .c extension) directly. That file must be compiled into an executable file.
It has been years since I have looked at C though.
I recently took a Python class, and now am working on R for a Micromasters program. One thing that often sheds some light is "Googling the error message".
In reading this, it reminded me of what is going on. The person asking this question was trying to run the .c file directly, just as you were. It appears that they give the proper steps to take for gcc.
Stackoverflow is a forum, where people ask and answer question specific to programming. Note the date on this post is from 2013, so this type of problem is not a new one.