Presentation is loading. Please wait.

Presentation is loading. Please wait.

C Programming Language

Similar presentations


Presentation on theme: "C Programming Language"— Presentation transcript:

1 C Programming Language
Execution Steps

2 Basic Steps for Creating & Executing
1 Creating Source Code Press F2 To Save Step 2 Compile Source Code Press Alt + F9 Step 3 Run Executable Code Press Ctrl + F9 Step 4 Check Result Press Alt + F5 1

3 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

4 Steps to create source code?
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

5 ALT + F9 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

6 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

7 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

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

9 For more information please visit www.btechsmartclass.com
Please do subscribe my channel


Download ppt "C Programming Language"

Similar presentations


Ads by Google