A statement is an instruction that does something. e.g – a = 5, c = 7+6. The difference is that a statement is a complete line of code that performs some action, while an expression is any section of the code that evaluates to a value.
A statement is an instruction that does something. e.g – a = 5, c = 7+6. The difference is that a statement is a complete line of code that performs some action, while an expression is any section of the code that evaluates to a value.