User Profile

Collapse

Profile Sidebar

Collapse
confusedbigtime
confusedbigtime
Last Activity: Feb 20 '07, 12:46 PM
Joined: Feb 18 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • confusedbigtime
    replied to some1 tell me wats goin on....
    in C
    oh right.......got it now....thanks a lot........
    See more | Go to post

    Leave a comment:


  • confusedbigtime
    replied to some1 tell me wats goin on....
    in C
    Hi horace!!
    I get what you said and in fact i came up with this explanation myself initially....wh at got me really confused is this theory doesnt seem to hold for the following code; its pretty much the same code, with the zero changed to a 1:
    int i=0;
    7||1&&++i;
    of what i gathered from your post, the compiler goes about this expression in the following way :
    && has higher precedence compared to...
    See more | Go to post

    Leave a comment:


  • confusedbigtime
    started a topic some1 tell me wats goin on....
    in C

    some1 tell me wats goin on....

    Hi there...im new to C programmin and ive gotten a little stuck with precedence of C operators...it wud be great if some1 cud tell me how the compiler goes about solving these kinds of expressions....

    i=0;
    7||0&&++i;
    why doesnt the value of i change???
    See more | Go to post
No activity results to display
Show More
Working...