Day 2 - History of C and Tokens
Day 2 - History of C and Tokens
Day 2 - History of C and Tokens
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
-
a Cll
- 2011 getso-fgel.sc )
fixes
•
C. 17
- 2018 Only bug
Begins
I Instruction
,→keYww→②ᵗʰ""ˢᵗʰⁿʰ@
A- toz
§*_/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
,¥m^
int struct - _
Alignof
register typedef
enum
case _
Imaginary A
extern
-
/
_
_
-689
Keywords c.gg/C11
+5
32 +7