On Wed, 26 Sep 2001, Hong Zhang wrote: > There should be no need. ~0xfff is singed int, which will be signed extended > by compilers as needed. Unless you are using a buggy compiler. Hehehe. Ok. Guess what the following will print: #include <stdio.h> int main(void) { int x = 511; printf("x = %x\n", x); printf("x & ~0xff = %x\n", x & (long long) ~0xff); return 0; } -- Andy Dougherty [EMAIL PROTECTED] Dept. of Physics Lafayette College, Easton PA 18042
- RE: Tru64 core dumps Brent Dax
- Re: Tru64 core dumps Simon Cozens
- RE: Tru64 core dumps Andy Dougherty
- Re: Tru64 core dumps H . Merijn Brand
- RE: Tru64 core dumps Dan Sugalski
- RE: Tru64 core dumps Andy Dougherty
- Re: Tru64 core dumps Simon Cozens
- Re: Tru64 core dumps Simon Cozens
- RE: Tru64 core dumps Gibbs Tanton - tgibbs
- RE: Tru64 core dumps Hong Zhang
- RE: Tru64 core dumps Andy Dougherty
- RE: Tru64 core dumps Andy Dougherty
- RE: Tru64 core dumps Hong Zhang
- RE: Tru64 core dumps Andy Dougherty