I have written a very simple C program to print "Hello World" in my Notepad text editor and saved it as test1.exe. I opened my cmd and ran the file test.exe and the received error is as follows:
The NTVDM CPU has encountered an Illegeal instruction. CS:0607 IP:0103 OP:63 6c 75 64 65 Choose 'Close' to terminate the application.
A few things to help you learn C in an easier manner:
Finally, see the tutorial here, how to get them all working: geany+mingw on windows.
One more thing, totally unrelated to C, or maybe it does.
I bluntly assume that C is your first programming experience, or that you are still doing first steps in programming.
C as a first language is VERY BAD. It is not forgiving, and most compilers pass things, but the code will crash, not letting you know what you did wrong.
Consider learing other languages first, a few good choices would be: