.:: Welcome To My Personal Blog ::.

Sunday, July 3, 2011

Programming with C Tutorial - Part 2

Variables and Arrays :



A variable is an identifier that is used to represent a single data item i.e. a numerical quantity or a character constant. The data item must be assigned to the variable and this will then be easily accessible from the program by referring the variable name. A simple example of declaring and using variables is given below :
int a, b, c;
char d;
float e, f; 
a = 1;
b = 2;
c = 3; 
d = 'a'; 
e = 4.01;
f = 5.02; 
c = a + b;

Popular Posts