Sie sind auf Seite 1von 16

Outline

 Recap
 Expected Outcome
 Concept of Programming
 History of C
 Keywords
 Test your knowledge
 Next Session
Recap
2

 C is a high-level language.

 Writing a C code. {editors like gedit, vi}

 Compiling a C code. {gcc –c test.c –o test}

 Executing the object code. {./test}


Expected Outcome
3

 To understand the history and basic structure of c p


rogramming.
Overview of C Programming
4

 A programming language is a set of instructions that can


be used to produce various kinds of output.

 Programming languages generally consist of instructions


for a computer.

 Programming languages can be used to create programs


that implement specific algorithms.

 https://www.youtube.com/watch?v=QY6392agFK4
Overview of C Programming
5

 Keywords
 char, static, if , while, return ..................... Total= about 32

 Data Types
 int , char, float ...………..….. Some more later

 Arithmetic Operators
+ (Plus), - (Minus), * (Multiplication), /(Division)
……….………. Some more later
History Of C
6

 The C programming language is a structure oriented p


rogramming language.

 Developed at Bell Laboratories in 1972 by Dennis Ritc


hie, also called father of C.

 C programming language features were derived from a


n earlier language called “B” (Basic Combined Progra
mming Language – BCPL).
History Of C
7

 C language was invented for implementing UNIX opera


ting system.

 In 1978, Dennis Ritchie and Brian Kernighan publishe


d the first edition “The C Programming Language” and
commonly known as K&R C.
C History Time line
8

Programming La Development Ye
Developed by
nguage ar

ALGOL 1960 International Group

BCPL 1967 Martin Richards

B 1970 Ken Thompson

Traditional C 1972 Dennis Ritchie

Brain Kernighan and Den


K&R C 1978
nis Ritchie

ANSI C 1989 ANSI Committee

ANSI/ISO C 1990 ISO Committee


Which Level Is C Language Belonging To?
9

S.no High Level Middle Level Low Level

1 High level languages p Middle level languages Low level langua


rovide almost everyth don’t provide all the bui ges provides not
ing that the program lt-in functions found in hing other than a
mer might need to do high level languages, bu ccess to the mach
as already built into th t provides all building b ines basic instruc
e language locks that we need to pr tion set
oduce the result we wa
nt.
2 Examples: C, C++ Assembler
Java, Python
The C Is A Structured Language
10

S.n Structure oriented Object oriented Non structured


o
1 In this type of language, large In this type of language, pro There is no specific s
programs are divided into sm grams are divided into obje tructure for progra
all programs called functions cts mming this language

2 Prime focus is on functions an Prime focus is in the data th N/A


d procedures that operate on t at is being operated and not
he data on the functions or procedu
res
3 Data moves freely around the Data is hidden and cannot b N/A
systems from one function to e accessed by external funct
another ions
4 Program structure follows “To Program structure follows “ N/A
p Down Approach” Bottom UP Approach”
5 Examples: BASIC, COBOL, FOR
C, Pascal, ALGOL C++, JAVA and C# (C sharp) TRAN
Keywords
11

 Programming Language

 High Level Language

 Low Level Language

 Structured Language
Class Quiz on Basics
12

1. Who is father of C Language?


A.Bjarne Stroustrup
B.James A. Gosling
C.Dennis Ritchie
D.Dr. E.F. Codd

2. C Language developed at _________?


A.AT & T's Bell Laboratories of USA in 1972
B.AT & T's Bell Laboratories of USA in 1970
C.Sun Microsystems in 1973
D.Cambridge University in 1972
Class Quiz on Basics
13

3. C programs are converted into machine language with th


e help of___________
A.An Editor
B.A compiler
C.An operating system
D.None of these.
4. C was primarily developed as________________
A.System programming language
B.General purpose language
C.Data processing language
D.None of the above
ANSWER KEY
14

1. C.Dennis Ritchie

2. A.AT & T's Bell Laboratories of USA in 1972

3. B.A compiler

4. B.General purpose language


Home Work
15

 Meaning of
 Syntax

 Semantics of a programming language


16

Das könnte Ihnen auch gefallen