b-5 演算子の優先度

Apr 26, 2019

b-5 演算子の優先度

名前 記号
カッコ ( ) a*(b+c)
単項 ++ — ! a++ –b !c
乗除 * / % a*b
加減 + – a+b
関係 > < <= >= if(a>b)
等号 == != if(a==b)
論理積 && if(mousePressed && (a > b))
論理和 || if(mousePressed || (a > b))
代入 = += -= *= /= %= a=13

上にある演算子ほど先に処理されます。

#animation

#いったところmemo

#読書きろく