Sunday, December 21, 2008

Type declaration instruction

This instruction type is used to declare the type of variable which is being used in the program. In a C program, the variable which is to used must have to declared before using it in any statement. Type declaration is usually done at the beginning of the program.
Ex:
int num;          /* where int is the declaration type and num is a variable name */
float num1;     /* where float is the declaration type and num1 is a variable name */
char name;     /* where char is the declaration type and name is a variable name */

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...