step-by-step-execution-M-Suwarnalatha.ppt

jasminkrachhadiya1 10 views 9 slides Sep 16, 2025
Slide 1
Slide 1 of 9
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9

About This Presentation

credit to owner


Slide Content

C Programming Language
Program
Execution Steps
M. Suwarnalatha
Dept.of Computer Science
Avanthi Degree & P.G College

Basic Steps for Creating & Executing
Creating Source Code
1
1Step
Compile Source Code2Step
Run Executable Code3Step
Check Result4Step
Press
Alt + F5
Press
Ctrl + F9
Press
Alt + F9
Press
F2 To Save

Creating Source Code
2
What is source code?
- Source Code is the file which contains programming code in
high level language.
- To create source code, we need a text editor to write the
program.
- In C programming language every source code file must be
saved with ā€œ.cā€ extension.

Creating Source Code
3
Steps to create source code?
- Open a text editor.
- Create New File.
- Type the program instructions.
- Save the file with ā€œ.cā€ extension.

Compiling Source Code
4
What is Compilation?
- Compilation is the process of translating the code from high
level language to low level language.
- But before translation compiler check for the errors. If
there are any errors it does not translate, simply returns list
of errors.
- To compile a C source code in Turbo C, we use shortcut key
ALT + F9

Executing/Running Executable Code
4
- After completing the compilation the compiler generates an
executable file with .exe extension.
- We need to execute this executable file to generate result
- To run a C executable code in Turbo C, we use shortcut key
CTRL + F9

Checking Result
4
- After execution the result is placed in the window called
User Screen. We need to open that user screen to check
result
- To open user screen in Turbo C, we use shortcut key
ALT + F5

C Program Execution Process
4
abc
Sample.c
Source Code Compiler
List of ERRORS
add
LinkerObject Code
Sample.obj
110
Executable Code
Sample.exe
CPU
User Screen
Header Files
stdio.h
ALT+F9
CRTL+F9 ALT+F5
Tags