Tuesday, December 16, 2008

Types of variables in C language

A quantity that varies its value is called a variable or simply we can say variable is a name given to the memory location where different constants are stored, these locations may store a integer or a real or a character constant or any other types of constants.

A variable can store the type of constant depends upon the type of constant which it support. For example, a constant stored in a integer variable must be an integer constant, a constant stored in a real constant must have to be a real constant and so on.
{also see: Rules for constructing variable name in C language}

No comments:

Post a Comment

Please give your valuable comments or queries if you fell its helpful or if you like the contents of the site. Thanks...