In C++ the size of the character literal is char. So in C the sizeof('a') is 4 for 32bit architecture, and CHAR_BIT is 8. But the sizeof(char) is one byte for both C and C++.

Maverick Noah
High hopes get Higher vibes
In answerQA you can ask and answer questions and share your experience with others!
In C++ the size of the character literal is char. So in C the sizeof('a') is 4 for 32bit architecture, and CHAR_BIT is 8. But the sizeof(char) is one byte for both C and C++.