mihkhub / gtoolchain-in-action

GNU toolchain in action
0 stars 0 forks source link

Referring to a Type with typeof #17

Open mihkhub opened 6 years ago

mihkhub commented 6 years ago

Another way to refer to the type of an expression is with typeof. The syntax of using of this keyword looks like sizeof, but the construct acts semantically like a type name defined with typedef.

A typeof construct can be used anywhere a typedef name can be used.