In this article we will see how to compile a C Program with Visual Studio Command Prompt.
Here i am using Visual studio 2010.
For opening Visual Studio command prompt,
All Programs -> Microsoft visual Studio 2010 -> Visual Studio Tools -> Visual Studio command prompt
 
After opening command prompt u should change the folder directory, in which c program is present.

After changing directory, For compiling a program suppose file name is helloworld.c ,
type cl helloworld.c and press enter , then the program will be compiled and the the respective .obj (object file) and .exe file will be generated.

Leave a Reply

Your email address will not be published. Required fields are marked *