Skip to main content
C Code Completion Medium +20 XP

Typedef Struct

Complete the typedef to create a Point type.

CFill in the blank
___ struct { int x; int y; } Point;

Type the missing code

Show answer and explanation

Answer: typedef

typedef creates an alias for a type. Without it you'd need to write 'struct Point' everywhere instead of just 'Point'.

Hint: Which keyword creates type aliases in C?

What this challenge tests

Code Completion in C: typedef, structs.

Related challenges