Professional Documents
Culture Documents
do If static While
Data types in ‘C’
Language
• Data types specify how we enter data into
our programs and what type of data we enter.
C language has some predefined set of data
types to handle various kinds of data that we
use in our program. These datatypes have
different storage capacities.
Memory location
10 reserved and is named
as i
RAM
Declaration and Initialization
• Example :
• int i; // declared but not initialised
• char c;
• int i, j, k; // Multiple declaration
• Initialization means assigning value to an already
declared variable,
• int i; // declaration
• i = 10; // initialization Initialization and
declaration can be done in one single step also,
• int i=10; //initialization and declaration in
same step int i=10, j=11;
Scope of Variables
|| Logical OR (a || b) is true