Skip to main content
C Code Completion Medium +20 XP

Struct Definition

Complete the struct keyword.

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

Type the missing code

Show answer and explanation

Answer: struct

struct defines a composite data type in C that groups variables of different types together.

Hint: What keyword creates custom types in C?

What this challenge tests

Code Completion in C: structs, data-structures.

Related challenges