搜尋此網誌

2025年3月30日星期日

Difference

In C++, expression produce a value.

Statements perform actions.

Each statement in C++ ends with a semicolon.

For example:

int a = 3; // A statement that assigns the result of an expression (3) to 'a'.

int b = (a + 2); // A statement containing an expression (a + 2).

Microsoft Copilot

沒有留言:

發佈留言