Day 2 - History of C and Tokens

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

History of C language

Tokens

Day-2

By
Saurabh Shukla
( My Sir a)
◦ BCPL
' -
Basic Combined Programming Language
1966 . Martin Richards

B -
1969 -
Ken Thompson


C -
1972 -
Dennis Ritchie


UNIX


AT d- T 's Bell Labs ,
USA
terming
X -
=3
x= -5 → x-=5

KAR -1978 r

ANSI C -
1983
• C. 89 -
1989 ✗ = -5
-1990
• CSO
-1995
C. 95
-

1999 Single line comment ,


variable length array ,
• Cgg _

a Cll
- 2011 getso-fgel.sc )

fixes

C. 17
- 2018 Only bug
Begins
I Instruction

,→keYww→②ᵗʰ""ˢᵗʰⁿʰ@
A- toz

at 2 Constants ① Declaration statements


Oto 9
variables
{ [ :

,

§*_/program]
?!~ operator
functions

÷
Constants
Data =
Information = constant
primary
constants secondary
constants
Integer 25
, -5,42 ,
-2373 arrays
"
Real
"
3.7 3.0 0.02 BHOPAL
Strings
-

character pointer
' ' ' ' ' '
' 1
a A +
'

5
'

'3 structure
union
'④✗ enumerator
?⃝
variables
MU

CU RAM
Program 's memory
ALU
9131
Processor
b

c☐7 =

qb ,
C are variables
variable Rules
naming
'

variable is
name
any combination of alphabet , digit

.

and underscore
No other symbol is allowed


valid variable name cannot start with a
digit

a a$
925 A. b

a- 2-b- 3 x -
l

x2 27C

÷
keywords
predefined words
Reserved words

auto double Bool All

,¥m^
int struct - _

break else switch Complex


long -
_

Alignof
register typedef
enum
case _
Imaginary A
extern
-

char return union


inline Generic
const float short unsigned
-

continue for signed void restrict _


Noreturn

default goto size of volatile a Static assert

/
_
_

static white Thread local


do
# _ _

-689
Keywords c.gg/C11
+5
32 +7

You might also like