Q:

How to run a c program using command prompt

How to run a c program using command prompt on win 7 with codeblocks installed and if location of c file is different than default location?  

A:

Compile and link the project
Open a command window
Change directory to where the executable is created
Run the executable

