User Profile
Collapse
-
oh right.......got it now....thanks a lot........ -
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...Leave a comment:
-
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???
No activity results to display
Show More
Leave a comment: