Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

What is an expression?

$
0
0
I'm having a hard time understanding expressions, what I'm perceiving is that expressions are things that can be evaluated right but what counts as something being evaluated, like does printing something in C# count as an expression, is declaring a variable without initializing it an expression? It doesn't have any value, right? I'm just very confused, I also wonder how it ties in with a statement because it seems that every statement is an expression, I mean, why wouldn't a statement evaluate something? Note that I'm just an absolute beginner that hasn't touch stuff like functions yet so I may just be getting the wrong ideas.

Viewing all articles
Browse latest Browse all 17825

Trending Articles