For Advanced Readers
-
The handling of overflow, divide check and other exceptions in expression evaluation are not defined in the language.
-
The presence of parenthesis does not affect whether the expression is an lvalue.
-
Relational expressions return Boolean value in Java. Note C++ returns int. In our opinion, zero as false and non-zero as true is only an ad-hoc arrangement. In early days, type Boolean was not defined. As soon as Boolean is introduced in a language, relational expressions should return Boolean. Hope this happens in next revision.
-
In java, you can assign a character variable to integer but not vice versa. In C++, you are allowed to do so. There is a reason for this. In early days, ASCII character set was used for char. Some ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access