Skip to main content

Type Aliases

// Since C89
// typedef creates an alias for an existing type.
typedef unsigned int uint;
typedef struct User User;

typedef struct Point
{
int x;
int y;
} Point;

uint id = 10;
Point point = { .x = 10, .y = 20 };