Expression: calculated; last calculated;
Statement: Operation, maintenance state; a single operation.
Expression: Something which evaluates to a value. Example: 1+2/x
Statement: A line of code which does something. Example: GOTO 100
https://blog.csdn.net/shaojwa/article/details/50539026
(1)a = 1
This is a statement that the purpose of the assignment to the variable a 1, after the statement is executed, the value of a becomes 1, regardless of what the original value;
if a = 1 then …
A = 1 here is an expression that does not itself produce any action, but only the value of variable a is 1 and compared, and the comparison result to the if statement to process.
That is: a single statement is executed, the practical effect of the code can be generated; the expression is contained in the statement, is calculated according to a certain condition or a value derived a certain result, and then the process is determined by the statement to code.
Reproduced friends: https:? //Wenda.so.com/q/1536126755218850 src = 140
————————————————
Disclaimer: This article is CSDN blogger original article "super_hong", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/super_hong/article/details/84667784