Re: operating with binary
- From: Frederick Gotham <fgothamNO@xxxxxxxx>
- Date: Fri, 08 Sep 2006 18:11:30 GMT
CBFalconer posted:
You wanted 1U << (CHAR_BIT - 1).
Kindly consult an operator precedence table.
No, Dave is right. The parentheses, whether or not necessary in C,
greatly improve the readability.
Subjective observation. I myself have no problem whatsoever with:
1U << CHAR_BIT-1
Putting in redundant parentheses just adds clutter -- I find it more readable
without them.
--
Frederick Gotham
.
- Follow-Ups:
- Re: operating with binary
- From: Richard Tobin
- Re: operating with binary
- References:
- Re: operating with binary
- From: Dave Thompson
- Re: operating with binary
- From: Frederick Gotham
- Re: operating with binary
- From: CBFalconer
- Re: operating with binary
- Prev by Date: Re: Memory-reversal Game
- Next by Date: Re: How do I check if a file is in use?
- Previous by thread: Re: operating with binary
- Next by thread: Re: operating with binary
- Index(es):
Relevant Pages
|