Consequently , the construct sizeof ( char ) is guaranteed to be 1 .
In the programming languages C and C++ , the unary operator sizeof generates the size of a variable or datatype , measured in the number of char - sized storage units required for the type .
The construct sizeof ( char ) is guaranteed to be 1 .
In the programming languages C and C++ , the unary operator sizeof generates the size of a variable or datatype , measured in the number of char - sized storage units required for the type .