0
I don't know what the assignment operators lesson means. can anybody help me?
2 Answers
+ 5
Assignment op is this : "="
The '=' asigns values to the variables.
ex:
int g;
g = 55;
In the lines above I've declared an integer variable and then I assigned 55 to it, with the = operator.
ps: The == , < and > are the comparison operators not the assignment op.
- 2
you mean those " <, >, <=, >=, =="?
its a way to compare 2 values.
for exemple:
3>2 = false
if you mean "+=, -= etc.."
its a "shortcut".
a+=b
wil work the same as
a=a+b
and the same with "-"