An excerpt from "A book on C"
The C language provides the typedef mechanism, which allows the programmer to explicitly associate a type with an identifier.
typedef char uppercase;
typedef int INCHES, FEET;
uppercase u;
INCHES length, width;
No comments:
Post a Comment