Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Comments on What are statements and expressions?
Post
What are statements and expressions?
When I have tried to read technical explanations of the syntax rules for programming languages, and when I am trying to decipher error messages, I often encounter the terms expression and statement. It comes across that these two are related to each other somehow.
I understand that these terms have something to do with the actual code written in a programming language - not, for example, special sorts of values calculated by the program when it runs - right? But what do they mean exactly? How can I use these concepts to improve my understanding of a programming language?
Statements and expressions are two syntactic categories that are used by many programming languages. Since they are synt …
1y ago
To add to the excellent explanation by FractionalRadix, it's worth mentioning that sometimes the line between expression …
1y ago
In computer programming, an expression is something that yields a value. A statement performs an action. For exam …
1y ago
The use of the terms expression and statement could vary between programming languages. However, the following distinct …
1y ago
1 comment thread