Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
C++
/
C structs, unions and enums
What must a program track when a union represents several alternative payloads?
from C structs, unions and enums
C23 (GCC 13.3.0)
beginner
1 min
What must a program track when a union represents several alternative payloads?
Which member currently represents a valid value
A separate allocation for every union member
The sum of all member sizes
The source-line number of the last write
Check
Ask AI about this kata
Report an error
previous kata
Which statement about sizeof(struct Record) is portable C?
Quiz
A new version is available
Reload