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++.
C (Programming Language)2 followers53 questions0 posts
2 followers
53 questions
0 posts
Do you have questions about C (Programming Language)?
Log in to ask questions about C (Programming Language) publicly or anonymously.
Answer
C (Programming Language)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++.
Answer
C (Programming Language)File I/O in C is very similar to Matlab. There are two main differences. One, we have to type the FILE variable. Two, we read one value (or a single line of values) at a time, whereas by default in... (More)
Answer
C (Programming Language)A structure is a user defined data type in C/C++. A structure creates a data type that can be used to group items of possibly different types into a single type. How to create a structure? 'struct' keyword is used... (More)