Difference between statement and expression?

Asked

Viewed 54 times

2

What is the difference between a statement and an expression in the context of programming languages?

Could show an example of how I identify both in a code snippet?

What would be the best term or which one approaches the concept in Portuguese to statement? instruction?

  • That 2 + f() or "rray " + "woof" is an expression, and this valor = 2 + f(); would be a statement (statement) ;)

  • 2

    Issso? https://answall.com/q/168177/101 and https://answall.com/q/173379/101

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.