Sunday, December 6, 2009

1.8 DECLARATIONS

A declaration associates a group of variables with a specific data type.All variables must be declared before they can appear in executable statements.

A C program contains the following type of declarations.

int a,b,c;
float root1,root2;
char flag,text[80];

Thus,a,b and c are declared to be integer variables,root1 and root2 are floating point variables,flag is a char type variable and text is an 80 element char type array.

No comments:

Post a Comment