Page 1 of 1
[HD Pg 121, Sec. 5.1.2 - difference-between-an-expression-and-a-statement]
Posted: Thu Jan 24, 2019 2:38 pm
by OCAJO1
Page 122, "of the expression a = a + b is the value produced by the expression on the right of == operator,"
I don't think he means to say, of a logical operator (==), so it must be, of an assignment operator (=).
Re: [HD Pg 121, Sec. 5.1.2 - difference-between-an-expression-and-a-statement]
Posted: Thu Jan 24, 2019 8:07 pm
by admin
Yes, but I see = and not == at that place.
Re: [HD Pg 121, Sec. 5.1.2 - difference-between-an-expression-and-a-statement]
Posted: Fri Jan 25, 2019 12:19 pm
by OCAJO1
You must be looking at a later build. In build 9.0 it shows ==. Either way, obviously it was just a typo.
Re: [HD Pg 121, Sec. 5.1.2 - difference-between-an-expression-and-a-statement]
Posted: Wed Jun 19, 2019 9:09 am
by Username987654
It is, in fact, an expression made by combining two expressions - a and a + b using the = operator.
should be
It is, in fact, a statement made by combining two expressions - a and a + b using the = operator.
?
Re: [HD Pg 121, Sec. 5.1.2 - difference-between-an-expression-and-a-statement]
Posted: Thu Jun 20, 2019 9:10 pm
by admin
No, this sentence is correct. We already know that a = a+b; is a statement. It is trying to drive the point that it is also an expression. It is made by combining two expressions a and a + b using =. Will make it clear.
thank you for your feedback.
Re: [HD Pg 121, Sec. 5.1.2 - difference-between-an-expression-and-a-statement]
Posted: Thu Jun 20, 2019 10:09 pm
by Username987654
Understood. Thanks.