Compiling a C program with Visual Studio Command Prompt
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,
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
![](http://www.programmingposts.com/wp-content/uploads/2017/07/visual_Studio_Command_Prompt.jpg)
After opening command prompt u should change the folder directory, in which c program is present.
![](http://www.programmingposts.com/wp-content/uploads/2017/07/visual_Studio_2010_Command_Prompt.jpg)
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.
![](http://www.programmingposts.com/wp-content/uploads/2017/07/Complie_C_VS2010.jpg)