1.0.introduction To C Language
1.0.introduction To C Language
Introduction to C Language
1.1 Define High level language and low level language
1.2 Describe the history of C language
1.3 State the importance of C language
1.4 Explain the structure of C language
1.5 Describe the programming style of C language
1.6 Explain the steps involved in executing the C program
Computer Program
• It contains a list of ingredients (called variables) and a list of directions (called statements) that tell the
computer what to do with the variables.
Programming Language
• A vocabulary and set of grammatical rules (syntax) for instructing a computer to perform specific tasks.
• Programming languages can be used to create computer programs.
You eventually need to convert your program into machine language so that the computer can
understand it.
• There are two ways to do this: – Compile the program – Interpret the program
• Compile is to transform a program written in a high level programming language from source code
into object code. • This can be done by using a tool called compiler. • A compiler reads the whole source
code and translates it into a complete machine code program to perform the required tasks which is
output as a new file.
Computer Programmer
• A programmer is someone who writes computer program. • Computer programmers write, test, and
maintain programs or software that tell the computer what to do.
Generations of Programming Language • The first generation languages, or 1GL, are lowlevel languages
that are machine language. • The second generation languages, or 2GL, are also low-level languages that
generally consist of assembly languages. • The third generation languages, or 3GL, are highlevel
languages such as C. • The fourth generation languages, or 4GL, are languages that consist of
statements similar to statements in a human language. Fourth generation languages are commonly used
in database programming and scripts. • The fifth generation languages, or 5GL, are programming
languages that contain visual tools to help develop a program. A good example of a fifth generation
language is Visual Basic.
Types of Programming Language • There are three types of programming language: – Machine language
(Low-level language) – Assembly language (Low-level language) – High-level language • Low-level
languages are closer to the language used by a computer, while high-level languages are closer to
human languages