Professional Documents
Culture Documents
Lec 2
Lec 2
Character Set
Identifiers and Keywords
Data types
OUTLINE
• In this lecture we will cover
– Character set
– Identifiers
– Keyword
– Data types
A B C D …… X Y Z Characters
• Rearrange
• Class, pen, bike, car, ball
square circle
ellipse square
circle ellipse
do if static while
M1=84, G1=? 84 A
char in C
M2=34, G2=? 34 D
char in C
Data
Type
©LPU CSE101 C Programming
List of Data Types
(Size of the data type depends upon the compiler also, following sizes may vary also, as per different compilers)
15 84 34 97
Storage
4 byte 8 byte 10 byte
Size
15
%d
Program 90
%d
3.14
%d
15
%d
Program 94.2
%f
3.14
%f
84 %d %c A
34 %c D
%d
97 %d Program %c A
58 %d %c C
64 %d %c B