Welcome, Guest. Please Login
 
  HomeHelpSearchLogin FAQ Radified Ghost.Classic Ghost.New Bootable CD Blog  
 
Page Index Toggle Pages: 1
Send Topic Print
programming 'expressions' (Read 3261 times)
Rad
Radministrator
*****
Offline


Sufferin' succotash

Posts: 4090
Newport Beach, California


Back to top
programming 'expressions'
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?
 
WWW  
IP Logged
 

MrMagoo
Übermensch
*****
Offline


Resident Linux Guru

Posts: 1026
Phoenix, AZ (USA)


Back to top
Re: programming 'expressions'
Reply #1 - 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
 
WWW  
IP Logged
 
Rad
Radministrator
*****
Offline


Sufferin' succotash

Posts: 4090
Newport Beach, California


Back to top
Re: programming 'expressions'
Reply #2 - Jan 4th, 2011 at 6:21pm
 
Thanks.

Yeah, I first went there to the Wikipedia page. Wasn't clear to me.
 
WWW  
IP Logged
 
Richie
N00b
Offline


I Love Radified!

Posts: 1


Back to top
Re: programming 'expressions'
Reply #3 - 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!
 
 
IP Logged
 
Marc Colby
N00b
Offline


I like paragliding.

Posts: 1
2355 Stillwell Ave, Brooklyn,


Back to top
Re: programming 'expressions'
Reply #4 - Nov 15th, 2011 at 6:31am
 
 

Edited by Nightowl:
Unnecessary Spam
 
IP Logged
 
Rad
Radministrator
*****
Offline


Sufferin' succotash

Posts: 4090
Newport Beach, California


Back to top
Re: programming 'expressions'
Reply #5 - 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.
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print