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 (=).
[HD Pg 121, Sec. 5.1.2 - difference-between-an-expression-and-a-statement]
Moderator: admin
-
- Posts: 221
- Joined: Mon Nov 26, 2018 2:43 pm
- Contact:
-
- Site Admin
- Posts: 10043
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: [HD Pg 121, Sec. 5.1.2 - difference-between-an-expression-and-a-statement]
Yes, but I see = and not == at that place.
If you like our products and services, please help us by posting your review here.
-
- Posts: 221
- Joined: Mon Nov 26, 2018 2:43 pm
- Contact:
Re: [HD Pg 121, Sec. 5.1.2 - difference-between-an-expression-and-a-statement]
You must be looking at a later build. In build 9.0 it shows ==. Either way, obviously it was just a typo.
-
- Posts: 95
- Joined: Sat Dec 26, 2015 6:37 pm
- Contact:
Re: [HD Pg 121, Sec. 5.1.2 - difference-between-an-expression-and-a-statement]
should beIt is, in fact, an expression made by combining two expressions - a and a + b using the = operator.
?It is, in fact, a statement made by combining two expressions - a and a + b using the = operator.
-
- Site Admin
- Posts: 10043
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: [HD Pg 121, Sec. 5.1.2 - difference-between-an-expression-and-a-statement]
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.
thank you for your feedback.
If you like our products and services, please help us by posting your review here.
-
- Posts: 95
- Joined: Sat Dec 26, 2015 6:37 pm
- Contact:
Re: [HD Pg 121, Sec. 5.1.2 - difference-between-an-expression-and-a-statement]
Understood. Thanks.
Who is online
Users browsing this forum: No registered users and 37 guests