1. Write two points of difference between follow terms
(ii) Expression and Statement
Answers
Answered by
0
Answer:
An expression is a statement that returns a value. So if it can appear on the right side of an assignment, or as a parameter to a method call, it is an expression.
Some code can be both an expression or a statement, depending on the context. The language may have a means to differentiate between the two when they are ambiguous.
Similar questions