typedef
Gives an existing type a new name.
Beginner
typedef struct { float x, y; } point_t; — then point_t p;. Avoid hiding pointers behind typedefs.
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.