Showing posts with label variable will hold.. Show all posts
Showing posts with label variable will hold.. Show all posts

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;

Copyright

Copyright © 2008 C Tutorial, All rights are reserved