by KeesA on Fri Jan 18, 2013 12:58 pm
Thank you for the link and the suggestion to change my language in the inlog screen.
What about the article in Wikepedia I linked to, I found it hard to read but what i think it comes down to is that for
8 bits a character is stored as 0-255
16 bits there is an extra bite for the order of significant bit (right to left or vise-versa).
32 bits: I don't get it since the article says that GNU gcc compilers convert a char to it for internal representation.
I wrote a C program myself and this is what I get:
kees@kees-OptiPlex-GX620 ~/Size_Of_Primitives_Lin/obj/Debug $ ./a.out
Rebuild on Linux Mint 14 Mate.
Used compiler: GNU gcc compiler
The size of a char is 8 bits.
The size of an unsigned char is 8 bits.
The size of a short int is 16 bits.
The size of an int is 32 bits.
The size of a long int is 32 bits.
The size of a float is 32 bits.
The size of a double is 64 bits.
The size of a long double is 96 bits.
The size of void is 1 bits.
8 bits, so how can this happen or do I not understand what the article is saying about UTF32.