Lecture#7

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

COMPUTER SCIENCE

12
SUBJECT TEACHER:
RASHAD MAHMOOD
CMA (Managerial) MBA-IT & Business
Cisco Certified Network Administrator
Microsoft Certified System Engineer
Linux Operating System Certified
Comptia Computer Hardware Certified

CHAPTER 8: Getting Started with C

Copyright @ Superior College Kharian RASHAD MAHMOOD ( IT SPECIALIZED


Topics

• Program and Programming languages


• Characteristics of High-Level Programming Languages
• Differentiate between Low-Level and High-Level Languages
• Source Code and Object Code
• Language Processors or Translators
• History of C Language
• Advantages or Characteristics of C Language
• Turbo C++
• Create, Edit , Compile and Execute C Program
• Steps to prepare C Program for Execution

Copyright @ Superior College Kharian RASHAD MAHMOOD ( IT SPECIALIZED


Topics(Cont.)
• .c and .cpp Extensions
• Process of setting te output and source directories
• Basic Structure of C Program
• Preprocessor Directives
• Header Files
• main Function
• C Statements
• Bug and Debug
• Types of Error ( Syntax errors, Logical Errors and Run-Time Errors
• Unstructured and Structured Programming Languages
• Debugging Features of Turbo C++

Copyright @ Superior College Kharian RASHAD MAHMOOD ( IT SPECIALIZED


• First step is to create and edit a new program
Create and Edit a C Program
• Process is performed using text editor like Notepad etc.

• Process to store the program on disk


Saving a C Program
• Program should be saved on disk to be used repeatedly

• Process of converting source program to object program


Compiling a C Program
• Compiler converts the source program if its free of syntax error

• Process of linking library files with object program


Linking a C Program
• A library file must be linked with the object file before execution
• Process of placing an execution file into memory for execution
• A loader is a program that places an executable file in the
Loading a C Program memory
• Loader is part of Operating System

• Executing is the process of running an executable file


Executing a C Program • Instructions written in the program are executed by the
computer

Copyright @ Superior College Kharian RASHAD MAHMOOD ( IT SPECIALIZED


Copyright @ Superior College Kharian RASHAD MAHMOOD ( IT SPECIALIZED
Copyright @ Superior College Kharian RASHAD MAHMOOD ( IT SPECIALIZED

You might also like