1 / 9

btechsmartclass

C Programming Language. Program Execution Steps. www.btechsmartclass.com. Basic Steps for Creating & Executing. Step. 1. Press F2 To Save. Creating Source Code. Step. 2. Press Alt + F9. Compile Source Code. Step. 3. Press Ctrl + F9. Run Executable Code. Step. 4.

cjensen
Download Presentation

btechsmartclass

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. C Programming Language Program Execution Steps www.btechsmartclass.com

  2. Basic Steps for Creating & Executing Step 1 Press F2 To Save Creating Source Code Step 2 Press Alt + F9 Compile Source Code Step 3 Press Ctrl + F9 Run Executable Code 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. 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. 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 User Screen Executable Code Object Code ALT+F5 CRTL+F9 ALT+F9 add 110 abc CPU Sample.exe Sample.obj Sample.c stdio.h List of ERRORS Header Files 4

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

More Related