Friday, May 16, 2008

Variable declaration

Variable declaration

All the variables must be declared before their use. It does two things:

(a) Tell the compiler what the variable name is.

(b) Specify what type of data that a variable will hold.

Syntax of variable declaration:

data_type variable_name;

Example of variable declaration:
int i,j,k;
char ch;

1 comments:

damu said...

execellent explanation

Copyright

Copyright © 2008 C Tutorial, All rights are reserved