1) Are there any other types in C ++ with a fixed size?
There are arrays with a given size:
sizeof(T[N]) == N * sizeof(T)
therefore sizeof(char[42]) 42 .
2) Does the empty structure meet this definition?
An empty structure is neither char , signed char , nor unsigned char , so it does not match this definition. (BTW its sizeof cannot be 0 ).
source share