[cfe-dev] Confusion on interpretations
Devchandra L Meetei
dlmeetei at gmail.com
Thu May 16 11:18:48 PDT 2013
But parentheses should have highest priority ? even before n>= 4
On Thu, May 16, 2013 at 11:36 PM, Jeffrey Walton <noloader at gmail.com> wrote:
> On Thu, May 16, 2013 at 1:51 PM, Devchandra L Meetei <dlmeetei at gmail.com>
> wrote:
> >
> > SUppose if We have
> > t = 128;
> > n = 3;
> > while ( n >= 4 && ((t = 7) & 0x80) == 0 )
> >
> > why t is 128 after the loop. As we learnt that parentheses has highest
> > priority.
> > Won't in this case t be 7. why the value is still 128?
> n >= 4 is false, so evaluation stops.
>
--
Warm Regards
--Dev
OpenPegasus Developer/Committer
(\__/)
(='.'=) This is Bunny. Copy and paste bunny
(")_(") to help him gain world domination.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130516/bc35c468/attachment.html>
More information about the cfe-dev
mailing list