Radified Community Forums | |
http://radified.com/cgi-bin/yabb2/YaBB.pl
Rad Community Non-Technical Discussion Boards >> The Water Cooler >> programming 'expressions' http://radified.com/cgi-bin/yabb2/YaBB.pl?num=1293929226 Message started by Rad on Jan 1st, 2011 at 6:47pm |
Title: programming 'expressions' Post by Rad on Jan 1st, 2011 at 6:47pm
when programmers use the term 'expressions,' is it true that they are generally referring the LOGICAL expressions, by which I mean if-else statements or some variation of the if-else statement?
|
Title: Re: programming 'expressions' Post by MrMagoo on Jan 2nd, 2011 at 3:18pm
No, that's not quite the right idea for an expression. An expression is a statement or set of statements that returns a value. A simple expression is 2+2, which returns 4. The value returned doesn't have to be numeric. 1==1 is an expression which would return 'true' (a boolean data type.)
if-else statements are going to make logical decisions in your program. By themselves, they aren't going to pass back a value. The Wikipedia page on expressions is mildly helpful. http://en.wikipedia.org/wiki/Expression_%28programming%29 |
Title: Re: programming 'expressions' Post by Rad on Jan 4th, 2011 at 6:21pm
Thanks.
Yeah, I first went there to the Wikipedia page. Wasn't clear to me. |
Title: Re: programming 'expressions' Post by Richie on Sep 6th, 2011 at 8:53am
I'm just starting to study programming and your explanation made a lot of stuff clear. Thanks!
_____________ I and [url=http://][/url] are inseparable! |
Title: Re: programming 'expressions' Post by Marc Colby on Nov 15th, 2011 at 6:31am
If you have any doubt in Expression and Logical operator so you can use two links.
http://www.cs.mtu.edu/~shene/COURSES/cs201/NOTES/chap03/logical.html http://docs.roxen.com/pike/7.0/tutorial/expressions/logical.xml |
Title: Re: programming 'expressions' Post by Rad on Nov 15th, 2011 at 11:10am
ooh, i like the link to wikipedia's spam page:
http://en.wikipedia.org/wiki/Spam_(electronic) very nice. also thanks for the links, MC. |
Radified Community Forums » Powered by YaBB 2.4! YaBB © 2000-2009. All Rights Reserved. |