Wednesday, 20 February 2013

how to run a c program written in notepad in visual studio

step 1
write your c program in notepad and save it with .c extension
step 2
go to start menu click on microsoft visual studio then open the visual studio tools and then click on the visual studio command prompt
step 3
now set the path where your file is on your computer with cd path command
step 4
now write the cl file name in the command prompt it will create the filename.exe file in given folder by compiling it
step 5
double click on the filename.exe file and you will see your program output

No comments:

Post a Comment