How to analyze these two following lines of code?
w += /* 28 + */ y % 4 == 0 && (y % 100 || y % 400 ==0);
and
w += 30 + (i % 2 ^ i >= 8);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is how to analyze it
Note that t1 and t2, can be evaluated in any order
t3 will be evaluated after t1 and t2
t4 can be evaluated before either t1 or t2
This requires familiarity with
Leaving the other one also to be analyzed on similar lines