Intro To Literals And Operators Flashcards
1
Q
Literals (literal constant)
A
Fixed value that has been inserted directly into the source code
2
Q
Literals vs variables
A
- both have value and type
- value of literals are fixed
- value of variable can be changed trough initialization or assignment
3
Q
Operators
A
Specific operation to be to be performed by a construct (symbol)
4
Q
Arity
A
Number of operands that an operator takes an input
5
Q
Unary
A
Act on one operand -5
6
Q
Binary
A
Acts on two operands, left and right (+, <>)
7
Q
Ternary
A
Act on three operands