This is a very basic example for getting started with C. This program will output a "Hello World" message.
You will need a c compiler to compile this code. In absense of a traditional compiler I used Visual Studio 2015 and followed the steps here: https://msdn.microsoft.com/en-us/library/bb384838.aspx
(Using Visual Studio 2015)
-
Open "Developer Command Prompt for VS2015". This can be found under the Visual Studio 2015 > Visual Studio Tools directory
-
CD to C.HelloWorld
-
cl helloworld.c (cl = compile). You should now have an exe in your directory along with a .obj
-
Cmd Prompt > helloworld. You should now see the message "Hello World".