What is struct (C structure)?
A C mechanism that groups several values (members), possibly of different types, into a single type. It is defined as in struct sensor { int id; float value; }; the members of a variable s are used as s.id, and through a pointer p to a struct as p->id. Members are laid out in memory in the order of declaration, but padding may be inserted between them for alignment, so the whole may be larger than the sum of the member sizes.
Japanese name: 構造体
struct (C structure) appears in 9 practice questions across 5 topics, including ISA & Assembly, C Programming Basics, Embedded Systems & Firmware.
Field: C Programming Basics