In this post, we will see Mixed Mode Assignment | PPL | Sebesta | Expressions and Assignment Statements | mixed mode assignment, ppl, sebesta, expressions and assignment statements
7. Mixed mode Assignment
One of the design decisions concerning arithmetic
expressions is whether an operator can have operands of different types.
Languages that allow such expressions, which are called
mixed-mode expressions, must define conventions for implicit operand
type conversions because computers do not have binary operations that take
operands of different types.
e.g.
int a=4;
float b=3.14;
float c;
c= a+b;
Watch following video:
Watch on YouTube: https://www.youtube.com/watch?v=mAmBML45600
No comments:
Post a Comment