Pages

Wednesday, March 5, 2014

typedef in C

C has the typedef construct to create synonyms for type names.

typedef int Distance;
typedef int type1[10];
typedef type1 *type2;
typedef struct { int field1;
type2 field2;
} type3;
typedef type3 type4[5];
typedef <type descriptor> T

-- Ullman

Related Posts by Categories

0 comments:

Post a Comment