How to compile a C program in Visual Studio 2005?

  1. Start à All Programs à Microsoft Visual Studio 2005 à Visual Studio Tools à Visual Studio 2005 Command Prompt.
  2. Once at the command prompt, type “notepad test.c”.
  3. Write the C code in the test.c – Notepad, save it and close.
  4. Compile the code by going back to the command prompt and typing “cl test.c”.
  5. Finally, execute the program by calling the program name “test”.
Advertisements
This entry was posted in Information Technology. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s