+ 4

Expressions vs statements

What's the difference between expressions and statements?

29th Nov 2019, 3:02 PM
Salih Benlalla
Salih Benlalla - avatar
4 Antworten
+ 9
An expression evaluates to a value. A statement does something. Statements represent an action or command e.g print statements, assignment statements. Expression is a combination of variables, operations and values that yields a result value https://stackoverflow.com/questions/4728073/what-is-the-difference-between-an-expression-and-a-statement-in-JUMP_LINK__&&__python__&&__JUMP_LINK 🐼 Coding Panda 🐼 I didn't feel the need to make a new answer but I fixed your link 🙂 Good day to you
29th Nov 2019, 3:13 PM
Raj Chhatrala
Raj Chhatrala - avatar
+ 1
About JavaScript: Is (often shortened to JS) is a lightweight, interpreted, object-oriented language with first-class functions, and is best known as the scripting language for Web pages, but it's used in many non-browser environments as well.JavaScript can function as both a procedural and an object-oriented language. Read more: https://www.cetpainfotech.com/technology/java-training About C: It was mainly developed as a system programming language to write an operating system. The main features of C language include low-level access to memory, a simple set of keywords, and clean style, these features make C language suitable for system programmings like an operating system or compiler development. read more: https://www.cetpainfotech.com/technology/C-Language-Training About Python: is a general-purpose and high-level programming language. You can use Python for developing desktop GUI applications, websites, and web applications. Also, Python, as a high-level programming language, allows you to focus on the core functionality of the application by taking care of common programming tasks. Read more: https://www.cetpainfotech.com/technology/python-training About C++: It helps in optimizing the resources. It supports the multiplayer option with networking. uses of C++ allows procedural programming for intensive functions of CPU and to provide control over hardware, and this language is very fast because of which it is widely used in developing different games or in gaming engines.
2nd Dec 2019, 7:48 AM
ananya gupta
ananya gupta - avatar
0
ananya gupta i didn't asked for the differences between javascript, python and c++, i asked for the difference between an expression and a statement
2nd Dec 2019, 1:53 PM
Salih Benlalla
Salih Benlalla - avatar
0
Expressions produce a value, and that value will be passed into the function. Statements don't produce a value, and so they can't be used as function arguments. https://www.softcrayons.com/java-training-institute-noida
2nd Sep 2024, 6:35 AM
pramod kala
pramod kala - avatar