Re: Portability questions of the week :-)

1999-07-16 Thread Sven Panne
My questions were: What is the output of: #include stdio.h int main(void) { printf("%d\n", sizeof(sizeof(int))); return 0; } Is this portable at all? There was only *one* reply yet (via personal email), and, alas, it was not correct... :-) Quoting Harbison/Steele's "C: A

Portability questions of the week :-)

1999-07-16 Thread Sven Panne
What is the output of: #include stdio.h int main(void) { printf("%d\n", sizeof(sizeof(int))); return 0; } Is this portable at all? %-} Whoever can answer these questions immediately should have a look GHC's RTS, especially the calculation of bit masks, shifts, ... Cheers, Sven --