Thread: A good question about precedence

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Feb 2012
    Posts
    46

    A good question about precedence

    Hi guys here is my question:

    let a=b=c=10 and what is the value of a,b,c after --a||--b&&--c


    I think it should have been b=9 and c= 9.I think it should follow this pattern: ((--a)||((--b)&&(--c)))

    is there anyone who can help me ?
    Last edited by dayanike; 03-13-2012 at 06:35 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Order of Precedence question
    By Jony in forum C Programming
    Replies: 10
    Last Post: 08-22-2011, 10:55 PM
  2. precedence question
    By nimitzhunter in forum C Programming
    Replies: 4
    Last Post: 08-10-2010, 11:57 PM
  3. Precedence question
    By jw232 in forum C++ Programming
    Replies: 6
    Last Post: 06-04-2008, 01:23 AM
  4. question about declaration precedence
    By waltr in forum C Programming
    Replies: 4
    Last Post: 06-16-2006, 12:32 PM
  5. question about precedence (i think)
    By rootnix in forum C++ Programming
    Replies: 4
    Last Post: 09-25-2001, 11:30 AM