Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
size of a sizeof(pointer)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Papadopoulos Giannis, post: 1700906"] If we use 16-bit values as char, then the new C0x spec must define something like "byte" (java's char is unicode and it haves an 8-bit type).. There is of course wchar_t so there is definately no need for 16bit chars.. Or so I think... Comments? -- #include <stdio.h> #define p(s) printf(#s" endian") int main(void){int v=1;*(char*)&v?p(Little):p(Big);return 0;} Giannis Papadopoulos [URL]http://dop.users.uth.gr/[/URL] University of Thessaly Computer & Communications Engineering dept. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
size of a sizeof(pointer)
Top