5th Chapter – Expression and Asignment Statements

Expressions are the fundamental means of specifying computations in a programming language

 

Arithmetic evaluation was one of the motivations for the development of the first programming languages consisting of operators, operands, parentheses, and function calls.

Overloaded operators => Using an operators for more than one purpose which may leads to some problems like loss of error detection and readability.

Type Conversions => Converting the data types of variables. Narrowing conversion is to lessen the range of the data by removing some. Whilst widening conversion is to enlarge the range so the data can include more data.

 

Relational and Boolean Expressions

To relate a data between another with operators such as <= ; >= ; == ;etc.

The result will be in boolean which is true or false.

 

Short-Circuit Evaluation => An expression in which the result is determined without evaluating all of the operands and/or operators

 

Assignment Statements => Statement to assign targeted operators with some expression

Mixed-Mode Assignment => Combining or mixing the assignment statements.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *