Professional Documents
Culture Documents
Contants Variables Ict
Contants Variables Ict
Bangalore East
Cambridge International
ACADEMIC SESSION 2021-22
GRADE 8
Constants, Variables &
Data Types
Character set
Eg:
const int y=5;
const string z=“ICT”;
Basic Data Types in C
Const - used to declare a variable as constant whose value does not change
Volatile - used to declare explicitly the value of some variables that can be
changed by its own/other program
Eg:
volatile int a; ---- can be changed by both own/external program
volatile const int b; ---- can be changed by external program but not by own program