About Question com.enthuware.ets.scjp.v6.2.340 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
ETS User

About Question com.enthuware.ets.scjp.v6.2.340 :

Post by ETS User »

Explanation:
In the case of i == f, value of i will be promoted to a float i.e. 5.0, and so it returns false.
= 8 and int( f +d) => int (5.5 + 3.8) => int(9.3) => 9, so this also return false.
So, c is not incremented at all. Hence c remains 'a'.
I think your explanation needs to be restated. The "=8" part is quite confusing.
thank you

admin
Site Admin
Posts: 10043
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question com.enthuware.ets.scjp.v6.2.340 :

Post by admin »

Fixed.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests