CS 3304: Comparative Languages
Arithmetic Expressions
[
Course Documents
] : [
Arithmetic Expressions
]
Previous
Contents
Next
Keyword Index
Assignment as an Expression
In C, C++, and Java, the assignment statement produces a result
So, they can be used as operands in expressions
while ((ch = getchar() != EOF) { ... }
Disadvantage: another kind of expression side effect