typeof__() and typeof() operators
With the __typeof__() operator, CodeWarrior C allows you to a specify a data type of an expression. Listing 3.6 shows an example.
A __typeof__() expression has the form
__typeof__(expression)
Like the sizeof() operator, __typeof__() is only evaluated at compile-time, not at runtime. For related information, see "Sizeof() Operator."
When the gcc_extensions pragma is on, a new operator, typeof(), is equivalent to the __typeof__() operator.
__typeof__() and typeof() operators:char *cp; int *ip; long *lp; typeof(*cp) c; /* equivalent to "char c;" */ #pragma gcc_extensions on __typeof__(*ip) i; /* equivalent to "int i;" */ __typeof__(*lp) l; /* equivalent to "long l;" */