Which data type’s size is consistent in both 32-bit and 64-bit operating systems?

The size of the char data type remains consistent across both 32-bit and 64-bit operating systems. In C programming, the char data type is typically defined as being 1 byte in size, regardless of the architecture.

This consistency arises from the fact that the char type represents individual characters and occupies the smallest addressable unit of memory in most systems, typically 8 bits or 1 byte. Therefore, whether the system is 32-bit or 64-bit, the size of a char remains the same.

Other data types like int, long, and pointer may have varying sizes between 32-bit and 64-bit systems, but the size of a char remains consistent.