Thursday, 6 November 2014

The Use of typedef

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