A
arnuld
i am unable to understand the difference between a "C++ expression"
and a "C++ statement". this is what i get from C++ Primer:
expression
The smallest unit of computation. An expression consists of one or
more operands and usually an operator. Expressions are evaluated to
produce a result. For example, assuming i and j are ints, then i + j
is an arithmetic addition expression and yields the sum of the two int
values. Expressions are covered in more detail in Chapter 5.
statement
The smallest independent unit in a C++ program. It is analogous to a
sentence in a natural language. Statements in C++ generally end in
semicolons.
..... now that is not clear to me. from Google i get this:
http://www.perlmonks.org/?node_id=101595 (that is for Perl not for C++)
and a "C++ statement". this is what i get from C++ Primer:
expression
The smallest unit of computation. An expression consists of one or
more operands and usually an operator. Expressions are evaluated to
produce a result. For example, assuming i and j are ints, then i + j
is an arithmetic addition expression and yields the sum of the two int
values. Expressions are covered in more detail in Chapter 5.
statement
The smallest independent unit in a C++ program. It is analogous to a
sentence in a natural language. Statements in C++ generally end in
semicolons.
..... now that is not clear to me. from Google i get this:
http://www.perlmonks.org/?node_id=101595 (that is for Perl not for C++)