비버놀로지

[Modern C++] Operator 본문

LANGUAGE STUDY/C C++

[Modern C++] Operator

KUNDUZ 2023. 1. 17. 08:24
728x90
Common operators
assignment increment arithmetic logical comparison member access other
a = b
a += b
a -= b
a*= b
a /= b
a &= b
a &= b
a |= b
a ^= b
a <<= b
a >>= b
++a
--a
a++
a--
+a
-a
a + b
a - b
a * b
a / b
a % b
~a
a & b
a | b
a ^ b
a << b
a >> b
!a
a && b
a || b
a == b
a != b
a < b
a > b
a >= b
a>= b
a <=> b
a[b]
*a
&a
a -> b
a.b
a -> *b
a.*b
a(...)
a, b
? :

 

728x90
Comments