Professional Documents
Culture Documents
Mr. Subhas Chandra Nath Assistant Professor Department of Computer Application
Mr. Subhas Chandra Nath Assistant Professor Department of Computer Application
BCAC101
1 Lecture :: 4
Contents
Variables in C
Naming Variable
Data Types
Size & Range of Data Types
Declaration of Variable
Assigning Value To Variable
Input/Output Function
Example Of C Program
Hands on Example
2
Variables in C
6
Size & Range of Data Types
9
Assigning Values To Variables
Example: int a;
float p;
char ch;
scanf(“%d”,&a);
scanf(“%f”,&p);
scanf(“%c”,&ch);
12
Or scanf(“%d%f%c”,&a,&p,&ch);
Example Of C Program
13
Output
14
Example
15
Thank You.
16