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 fundamentals
Which statement about sizeof(char) is portable C?
from C fundamentals
C23 (GCC 13.3.0)
beginner
2 min
Which statement about sizeof(char) is portable C?
It is always 1 C byte, while CHAR_BIT tells how many bits that byte has.
It is always 8 because every C byte is eight bits.
It equals sizeof(int) on every hosted implementation.
It depends on whether plain char is signed.
Check
Ask AI about this kata
Report an error
next kata
What does this program print?
Predict the output
A new version is available
Reload