Upload
barrie-harrell
View
217
Download
3
Tags:
Embed Size (px)
Citation preview
www.btechsmartclass.blogspot.com
Step By Step
Main 3 Steps
123
Create Program
Compile Program
Execute Program
www.btechsmartclass.blogspot.com
Steps to Execute a Program Open a editor
Write/Type the program
Save the program with “.c” extension
Compile the program (alt + F9)
Run/Execute the program (ctrl + F9)
Check the Result in User Screen
Opening EditorPress ‘Start’ on the desktop
Select ‘Run’
Type ‘cmd’ and press Enter
Type ‘cd\’ and press Enter
Type ‘cd TC’ and press Enter
Type ‘cd Bin’ and press Enter
Type ‘TC’ and press Enter
Write/Type the Program
Click on ‘File’ in the editor
Select ‘New’
Type the program
Save the ProgramClick on ‘File’ and select ‘Save’
Press ‘F2’
Type file name with ‘.c’ extension
Click on ‘OK’
(OR)
Compile the ProgramClick on ‘Compile’ menu and select ‘Compile’
Press ‘Alt + F9’
Then it shows Total number of ERRORs
If there are any ERRORs then correct the ERRORs and Compile again else go to Next Step
(OR)
Run/Execute the ProgramClick on ‘Run’ menu and select ‘Run’
Press ‘Ctrl + F9’
Then program is executed and output is displayed in User Screen
(OR)
Check the ResultClick on ‘Window’ menu and select ‘User Screen’
Press ‘Alt + F5’
Then output of the program is displayed
(OR)
Compiler ProcessorAbc
Execution Process
Source Code Object Code
Alt + F9 Ctrl + F9
Error List
Alt + F5
This will be in LOOP until ERRORs become ZERO
Sample.c Sample.exe
123
Turbo C
Eclipse IDE C/C++
NetBeans IDE
4 Dev C++
CodeLite5