Please enable JavaScript.
Coggle requires JavaScript to display documents.
EXPRESSIONS, Example - Coggle Diagram
EXPRESSIONS
Type
Conversions
-
-
-
Narrowing
Conversion
Converts from a broader type to a narrower one, potentially losing some values.
Example: float to int.
Widening Conversion:
Converts from a narrower type to a broader one, retaining magnitude but possibly losing precision. Example: int to float.
What are they formed ?
operators,operands,paranthesis,function calls
-
Example
result = a + b c (Here a,b,c are operands and +, are operators and result is where the final value of the exprssion is stored)
Types..............
- Arithmetic Expression
- Boolean Expression
- Function Call
-
-
-
-
Operator
Overloading
Types of Overloading
Same Action, Different Data Types:
e.g., '+' for addition
across various data types.
Similar Actions: e.g., '+' in Java for both addition and string concatenation
CompletelyDifferent Actions: e.g., '&' in C for bitwiseAND and getting address of avariable
-
-
Related Other Topics
-
-
Assignment Expression
Assignment Operators
Examples:
PHP: $a = ($b = 4) + 5;
MySQL: set x = 4;
Python:
Simple assignment: a, b = 10,20
Packing: a = 10,20,30
Unpacking: a,b = [1,2]
-
-
-