Friday, July 10, 2009

Symbolic Constants in C Programming language

Symbolic Constants

You can define constants of any type by using the #define compiler directive. Its syntax is simple--for instance
#define ANGLE_MIN 0
#define ANGLE_MAX 360
would define ANGLE_MIN and ANGLE_MAX to the values 0 and 360, respectively. C distinguishes between lowercase and uppercase letters in variable names. It is customary to use capital letters in defining global constants.




Other links

No comments:

Blog List