0% found this document useful (0 votes)
125 views9 pages

C Programming Execution Guide

The document outlines the basic steps for creating and executing a C program: 1) Create the source code by writing the program in a text editor and saving it with a .c extension. 2) Compile the source code using a compiler which checks for errors and generates an object code file if none are present. 3) Link the object code file with library files via a linker to produce an executable file. 4) Run the executable file using a shortcut key and view the output in the user screen.

Uploaded by

Fido castor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
125 views9 pages

C Programming Execution Guide

The document outlines the basic steps for creating and executing a C program: 1) Create the source code by writing the program in a text editor and saving it with a .c extension. 2) Compile the source code using a compiler which checks for errors and generates an object code file if none are present. 3) Link the object code file with library files via a linker to produce an executable file. 4) Run the executable file using a shortcut key and view the output in the user screen.

Uploaded by

Fido castor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd

C Programming Language

Program
Execution Steps

www.btechsmartclass.com
Basic Steps for Creating & Executing

Step 1
Press
Creating Source Code F2 To Save

Step 2
Press
Compile Source Code Alt + F9

Step 3
Press
Run Executable Code Ctrl + F9

Step 4 Check Result Press


Alt + F5
1
Creating Source Code

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.

2
Creating Source Code

Steps to create source code?


- Open a text editor.

- Create New File.

- Type the program instructions.

- Save the file with “.c” extension.

3
Compiling Source Code

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
4
Executing/Running Executable Code

- 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

4
Checking Result

- 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

4
C Program Execution Process

Source Code Compiler Object Code Linker Executable Code User Screen

abc ALT+F9 add 110 CRTL+F9 ALT+F5

CPU

Sample.obj Sample.exe
Sample.c

stdio.h

List of ERRORS

Header Files
4
For more information please visit www.btechsmartclass.com

Please do subscribe my channel

You might also like