Skip to content
UPEEC

Structures

Group related fields into one type.

Beginner
Comments 0
struct reading { uint32_t time_ms; float volts; };
struct reading r = { .time_ms = 1000, .volts = 3.3f };   /* designated initialisers */

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.