Professional Documents
Culture Documents
PROGRAMMING METHODOLOGIES
UNIT- 2
LECTURE - 2
We will discuss:
Character Sets
Uppercase Alphabets A, B, C, … Y, Z
Lowercase Alphabets a, b, c, … y, z
Digits 0, 1, 2, 3, … 9
~‘!@#%^&*()_-+=|\{} []:;"
Special Symbols
'<>,.?/
White spaces Single space, tab, new line etc.
Meaningfulness
• Rearrange
Class, pen, bike, car, ball
a)//
b)\\
c)/*…*/
d)*/ /*
Tokens
Every single element in a C Program is Token
Tokens
• Smallest unit in a program/statement.
• It makes the compiler understand what is
written in the program.
• Example: main, printf , name,), etc.
• Tokens are broadly classified as:
• Identifiers
• Keywords
• Constants
• Variables
• Strings
• Operators
• Special character
Lets Identify the following:
square
ellipse
circle
Contd..
circle
square
ellipse
Identifiers
• So to identify things we have some name given to them.
a)<conio.h>
b)<string.h>
c)<math.h>
d)<stdio.h>
POLL
Q. conio.h header file includes the following
functions:
do if static while
POLL
a) *include
b) #include
c) Both a and b
d) None of above